add Follow test
This commit is contained in:
parent
355da18d3d
commit
55147feb8e
1 changed files with 14 additions and 0 deletions
14
test/content/follow.test.js
Normal file
14
test/content/follow.test.js
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
import { expect } from "chai";
|
||||||
|
import Follow from '../../src/content/follow';
|
||||||
|
|
||||||
|
describe('Follow class', () => {
|
||||||
|
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('');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
Reference in a new issue