Add HintKeyProducer

This commit is contained in:
Shin'ya Ueoka 2019-05-19 15:40:23 +09:00
parent 6d9aaef18c
commit c4dcdff984
3 changed files with 42 additions and 3 deletions

View file

@ -1,9 +1,10 @@
import HintKeyProducer from 'content/hint-key-producer';
import HintKeyProducer from '../../../src/content/usecases/HintKeyProducer';
import { expect } from 'chai';
describe('HintKeyProducer class', () => {
describe('#constructor', () => {
it('throws an exception on empty charset', () => {
expect(() => new HintKeyProducer([])).to.throw(TypeError);
expect(() => new HintKeyProducer('')).to.throw(TypeError);
});
});