Make find as a clean architecture

This commit is contained in:
Shin'ya Ueoka 2019-05-11 11:37:18 +09:00
parent bacf83a320
commit 1ba1660269
15 changed files with 424 additions and 182 deletions

View file

@ -0,0 +1,15 @@
import { FindRepositoryImpl } from '../../../src/content/repositories/FindRepository';
import { expect } from 'chai';
describe('FindRepositoryImpl', () => {
it('updates and gets last keyword', () => {
let sut = new FindRepositoryImpl();
expect(sut.getLastKeyword()).to.be.null;
sut.setLastKeyword('monkey');
expect(sut.getLastKeyword()).to.equal('monkey');
});
});