Mark set/jump as a clean architecture

This commit is contained in:
Shin'ya Ueoka 2019-05-11 16:38:08 +09:00
parent ebfb172520
commit c6288f19d9
16 changed files with 316 additions and 137 deletions

View file

@ -0,0 +1,13 @@
import { MarkRepositoryImpl } from '../../../src/content/repositories/MarkRepository';
import { expect } from 'chai';
describe('MarkRepositoryImpl', () => {
it('save and load marks', () => {
let sut = new MarkRepositoryImpl();
sut.set('a', { x: 10, y: 20 });
expect(sut.get('a')).to.deep.equal({ x: 10, y: 20 });
expect(sut.get('b')).to.be.null;
});
});