diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-01 20:33:18 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-01 20:33:18 +0900 |
commit | 192e6fec1bbc540063bf7a56d5da98b61d1df6eb (patch) | |
tree | 64d5ae21d2510475af9516efb061ea912b8decff /test/background/keys.test.js | |
parent | 1f3dc0ba5a3bc0f02a98e3e11fca6038b9fd8b87 (diff) | |
parent | a74a8b537e8a82f1af63667fd73869b83d8b7d0d (diff) |
Merge branch 'more-components'
Diffstat (limited to 'test/background/keys.test.js')
-rw-r--r-- | test/background/keys.test.js | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/test/background/keys.test.js b/test/background/keys.test.js deleted file mode 100644 index 2cb9a3a..0000000 --- a/test/background/keys.test.js +++ /dev/null @@ -1,31 +0,0 @@ -import { expect } from "chai"; -import * as keys from '../../src/background/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'); - }); -}); |