Skip to content

Commit 303fc92

Browse files
test cases fix
1 parent 4326d41 commit 303fc92

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/vs/workbench/parts/preferences/test/common/keybindingsEditorModel.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,24 +258,24 @@ suite('Keybindings Editor Model test', () => {
258258
});
259259
});
260260

261-
test('filter by default source with "source: " prefix', () => {
261+
test('filter by default source with "@source: " prefix', () => {
262262
const command = 'a' + uuid.generateUuid();
263263
const expected = aResolvedKeybindingItem({ command, firstPart: { keyCode: KeyCode.Escape }, when: 'context1 && context2', isDefault: true });
264264
prepareKeybindingService(expected);
265265

266266
return testObject.resolve({}).then(() => {
267-
const actual = testObject.fetch('source: default').filter(element => element.keybindingItem.command === command)[0];
267+
const actual = testObject.fetch('@source: default').filter(element => element.keybindingItem.command === command)[0];
268268
assert.ok(actual);
269269
});
270270
});
271271

272-
test('filter by user source with "source: " prefix', () => {
272+
test('filter by user source with "@source: " prefix', () => {
273273
const command = 'a' + uuid.generateUuid();
274274
const expected = aResolvedKeybindingItem({ command, firstPart: { keyCode: KeyCode.Escape }, when: 'context1 && context2', isDefault: false });
275275
prepareKeybindingService(expected);
276276

277277
return testObject.resolve({}).then(() => {
278-
const actual = testObject.fetch('source: user').filter(element => element.keybindingItem.command === command)[0];
278+
const actual = testObject.fetch('@source: user').filter(element => element.keybindingItem.command === command)[0];
279279
assert.ok(actual);
280280
});
281281
});

0 commit comments

Comments
 (0)