diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-11 16:38:08 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-11 16:38:08 +0900 |
commit | c6288f19d93a05f96274dd172450b8350389c39f (patch) | |
tree | 75b5a168af535aa640bc21e70281497915dade63 /test/content/repositories | |
parent | ebfb172520f7077a15cd5d4e865e5d86593c55ac (diff) |
Mark set/jump as a clean architecture
Diffstat (limited to 'test/content/repositories')
-rw-r--r-- | test/content/repositories/MarkRepository.test.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/content/repositories/MarkRepository.test.ts b/test/content/repositories/MarkRepository.test.ts new file mode 100644 index 0000000..7fced5f --- /dev/null +++ b/test/content/repositories/MarkRepository.test.ts @@ -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; + }); +}); + |