diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-08 08:58:11 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-08 09:54:15 +0900 |
commit | 944683a2d8f9a165c490d05c350fdc689bdb6c85 (patch) | |
tree | d628defb539c6a02f6e1ab9d88b80bd039e94662 /test/components | |
parent | ea455059bd0af542f3e8c723fc7774e74b8abffe (diff) |
use key instead of keyCode in follow
Diffstat (limited to 'test/components')
-rw-r--r-- | test/components/follow.test.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/test/components/follow.test.js b/test/components/follow.test.js index c83e211..294bfc9 100644 --- a/test/components/follow.test.js +++ b/test/components/follow.test.js @@ -2,16 +2,6 @@ import { expect } from "chai"; import FollowComponent from 'components/follow'; describe('FollowComponent', () => { - describe('#codeChars', () => { - it('returns a string for key codes', () => { - let chars = [ - KeyboardEvent.DOM_VK_0, KeyboardEvent.DOM_VK_1, - KeyboardEvent.DOM_VK_A, KeyboardEvent.DOM_VK_B]; - expect(FollowComponent.codeChars(chars)).to.equal('01ab'); - expect(FollowComponent.codeChars([])).to.be.equal(''); - }); - }); - describe('#getTargetElements', () => { beforeEach(() => { document.body.innerHTML = __html__['test/components/follow.html']; |