aboutsummaryrefslogtreecommitdiff
path: root/test/shared/keys.test.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-03 21:31:25 +0900
committerGitHub <noreply@github.com>2017-10-03 21:31:25 +0900
commit3244c3c35db7639dc1bb08d9b0bcd40323e9d626 (patch)
tree1acf04feeb4b246240e573744306d227620c7294 /test/shared/keys.test.js
parentb5e52a75d760c23d2ac7257056f9ba592ad17b34 (diff)
parent4b5616b5244f14a8e6b1edf59e944edb7d8ae2d4 (diff)
Merge pull request #16 from ueokande/enable-keys
Enable keys on github.com
Diffstat (limited to 'test/shared/keys.test.js')
-rw-r--r--test/shared/keys.test.js31
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');
- });
-});