Mark set/jump as a clean architecture
This commit is contained in:
parent
ebfb172520
commit
c6288f19d9
16 changed files with 316 additions and 137 deletions
13
test/content/repositories/MarkRepository.test.ts
Normal file
13
test/content/repositories/MarkRepository.test.ts
Normal 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;
|
||||
});
|
||||
});
|
||||
|
Reference in a new issue