diff options
Diffstat (limited to 'test/content')
-rw-r--r-- | test/content/repositories/SettingRepository.test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/content/repositories/SettingRepository.test.ts b/test/content/repositories/SettingRepository.test.ts index fea70b7..457ca4c 100644 --- a/test/content/repositories/SettingRepository.test.ts +++ b/test/content/repositories/SettingRepository.test.ts @@ -1,12 +1,13 @@ import { SettingRepositoryImpl } from '../../../src/content/repositories/SettingRepository'; import { expect } from 'chai'; +import Keymaps from '../../../src/shared/settings/Keymaps'; describe('SettingRepositoryImpl', () => { it('updates and gets current value', () => { let sut = new SettingRepositoryImpl(); let settings = { - keymaps: {}, + keymaps: Keymaps.fromJSON({}), search: { default: 'google', engines: { @@ -19,7 +20,7 @@ describe('SettingRepositoryImpl', () => { complete: 'sbh', }, blacklist: [], - } + }; sut.set(settings); @@ -27,4 +28,3 @@ describe('SettingRepositoryImpl', () => { expect(actual.properties.hintchars).to.equal('abcd1234'); }); }); - |