提交 134e7a82 编写于 作者: A Alex Dima

Fix unit tests on mac

上级 0d6a9f83
......@@ -147,7 +147,7 @@ suite('AbstractKeybindingService', () => {
assert.deepEqual(executeCommandCalls, []);
assert.deepEqual(showMessageCalls, []);
assert.deepEqual(statusMessageCalls, [
'(Ctrl+K) was pressed. Waiting for second key of chord...'
`(${new Keybinding(KeyMod.CtrlCmd | KeyCode.KEY_K)._toUSLabel()}) was pressed. Waiting for second key of chord...`
]);
assert.deepEqual(statusMessageCallsDisposed, []);
executeCommandCalls = [];
......@@ -161,10 +161,10 @@ suite('AbstractKeybindingService', () => {
assert.deepEqual(executeCommandCalls, []);
assert.deepEqual(showMessageCalls, []);
assert.deepEqual(statusMessageCalls, [
'The key combination (Ctrl+K, Backspace) is not a command.'
`The key combination (${new Keybinding(KeyMod.CtrlCmd | KeyCode.KEY_K)._toUSLabel()}, ${new Keybinding(KeyCode.Backspace)._toUSLabel()}) is not a command.`
]);
assert.deepEqual(statusMessageCallsDisposed, [
'(Ctrl+K) was pressed. Waiting for second key of chord...'
`(${new Keybinding(KeyMod.CtrlCmd | KeyCode.KEY_K)._toUSLabel()}) was pressed. Waiting for second key of chord...`
]);
executeCommandCalls = [];
showMessageCalls = [];
......@@ -262,7 +262,7 @@ suite('AbstractKeybindingService', () => {
assert.deepEqual(executeCommandCalls, []);
assert.deepEqual(showMessageCalls, []);
assert.deepEqual(statusMessageCalls, [
'(Ctrl+K) was pressed. Waiting for second key of chord...'
`(${new Keybinding(KeyMod.CtrlCmd | KeyCode.KEY_K)._toUSLabel()}) was pressed. Waiting for second key of chord...`
]);
assert.deepEqual(statusMessageCallsDisposed, []);
executeCommandCalls = [];
......@@ -281,7 +281,7 @@ suite('AbstractKeybindingService', () => {
assert.deepEqual(showMessageCalls, []);
assert.deepEqual(statusMessageCalls, []);
assert.deepEqual(statusMessageCallsDisposed, [
'(Ctrl+K) was pressed. Waiting for second key of chord...'
`(${new Keybinding(KeyMod.CtrlCmd | KeyCode.KEY_K)._toUSLabel()}) was pressed. Waiting for second key of chord...`
]);
executeCommandCalls = [];
showMessageCalls = [];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册