diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-02 21:35:52 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-02 21:38:23 +0900 |
commit | 0a7ae631cd72100abdc26b84b06006bb5b166cba (patch) | |
tree | 3bef6ca26a12e3b3cbedb3d1dbb9d0a39a7fd466 /test | |
parent | 6f857e2c81b2d31a86d39c02b010345d3ff23a38 (diff) |
follow as redux
Diffstat (limited to 'test')
-rw-r--r-- | test/components/follow.html (renamed from test/content/follow.html) | 0 | ||||
-rw-r--r-- | test/components/follow.test.js (renamed from test/content/follow.test.js) | 12 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/content/follow.html b/test/components/follow.html index 6bd8f87..6bd8f87 100644 --- a/test/content/follow.html +++ b/test/components/follow.html diff --git a/test/content/follow.test.js b/test/components/follow.test.js index fd4f0bc..f2f870e 100644 --- a/test/content/follow.test.js +++ b/test/components/follow.test.js @@ -1,24 +1,24 @@ import { expect } from "chai"; -import Follow from '../../src/content/follow'; +import FollowComponent from '../../src/components/follow'; -describe('Follow class', () => { +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(Follow.codeChars(chars)).to.equal('01ab'); - expect(Follow.codeChars([])).to.be.equal(''); + expect(FollowComponent.codeChars(chars)).to.equal('01ab'); + expect(FollowComponent.codeChars([])).to.be.equal(''); }); }); describe('#getTargetElements', () => { beforeEach(() => { - document.body.innerHTML = __html__['test/content/follow.html']; + document.body.innerHTML = __html__['test/components/follow.html']; }); it('returns visible links', () => { - let links = Follow.getTargetElements(window.document); + let links = FollowComponent.getTargetElements(window.document); expect(links).to.have.lengthOf(1); }); }); |