aboutsummaryrefslogtreecommitdiff
path: root/test/content/repositories/KeymapRepository.test.ts
diff options
context:
space:
mode:
authorShin'ya UEOKA <ueokande@i-beam.org>2019-10-03 12:32:32 +0000
committerShin'ya UEOKA <ueokande@i-beam.org>2019-10-06 12:58:59 +0000
commitb496cea5827165bd23a503231f94f708a976cad4 (patch)
treef6d8ec1bd42c8d6d43143c1b62d48b9f4a1d62c4 /test/content/repositories/KeymapRepository.test.ts
parent62a86c525378610444a9976dd4409ea207174d20 (diff)
Make KeySequence class
Diffstat (limited to 'test/content/repositories/KeymapRepository.test.ts')
-rw-r--r--test/content/repositories/KeymapRepository.test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/content/repositories/KeymapRepository.test.ts b/test/content/repositories/KeymapRepository.test.ts
index 8f0be67..da5624e 100644
--- a/test/content/repositories/KeymapRepository.test.ts
+++ b/test/content/repositories/KeymapRepository.test.ts
@@ -16,7 +16,7 @@ describe('KeymapRepositoryImpl', () => {
sut.enqueueKey(Key.fromMapKey('b');
let sequence = sut.enqueueKey(Key.fromMapKey('c'));
- let keys = sequence.getKeyArray();
+ let keys = sequence.keys;
expect(keys[0].equals(Key.fromMapKey('a'))).to.be.true;
expect(keys[1].equals(Key.fromMapKey('b'))).to.be.true;
expect(keys[2].equals(Key.fromMapKey('c'))).to.be.true;
@@ -25,9 +25,9 @@ describe('KeymapRepositoryImpl', () => {
describe('#clear()', () => {
it('clears keys', () => {
- sut.enqueueKey(Key.fromMapKey('a');
- sut.enqueueKey(Key.fromMapKey('b');
- sut.enqueueKey(Key.fromMapKey('c');
+ sut.enqueueKey(Key.fromMapKey('a'));
+ sut.enqueueKey(Key.fromMapKey('b'));
+ sut.enqueueKey(Key.fromMapKey('c'));
sut.clear();
let sequence = sut.enqueueKey(Key.fromMapKey('a'));