From 944683a2d8f9a165c490d05c350fdc689bdb6c85 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 8 Oct 2017 08:58:11 +0900 Subject: use key instead of keyCode in follow --- test/components/follow.test.js | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'test/components/follow.test.js') 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']; -- cgit v1.2.3