diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-03 20:58:50 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-03 20:58:50 +0900 |
commit | 5ac1f60ece0a112a55f329ed34b455dcc776b22c (patch) | |
tree | 1c901a6529fd50b9e62d50a2131c3043ccfb5079 /test/shared/keys.test.js | |
parent | eff8d9a83edf63bab09df4bd7f6e20e85fba3899 (diff) |
remove deprecated property in KeyboardEvent
Diffstat (limited to 'test/shared/keys.test.js')
-rw-r--r-- | test/shared/keys.test.js | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/test/shared/keys.test.js b/test/shared/keys.test.js deleted file mode 100644 index 53c953d..0000000 --- a/test/shared/keys.test.js +++ /dev/null @@ -1,31 +0,0 @@ -import { expect } from "chai"; -import * as keys from '../../src/shared/keys'; - -describe("keys", () => { - const KEYMAP = { - 'g<C-X>GG': [], - 'gg': { type: 'scroll.top' }, - }; - - const g = 'g'.charCodeAt(0); - const G = 'G'.charCodeAt(0); - const x = 'x'.charCodeAt(0); - - describe('#asKeymapChars', () => { - let keySequence = [ - { code: g }, - { code: x, ctrl: true }, - { code: G } - ]; - expect(keys.asKeymapChars(keySequence)).to.equal('g<C-X>G'); - }); - - describe('#asCaretChars', () => { - let keySequence = [ - { code: g }, - { code: x, ctrl: true }, - { code: G } - ]; - expect(keys.asCaretChars(keySequence)).to.equal('g^XG'); - }); -}); |