aboutsummaryrefslogtreecommitdiff
path: root/test/content/repositories
diff options
context:
space:
mode:
authorShin'ya UEOKA <ueokande@i-beam.org>2019-10-05 07:19:48 +0000
committerShin'ya UEOKA <ueokande@i-beam.org>2019-10-06 12:58:59 +0000
commit0dec6c641fc11348f89a12680a087ccda1181f66 (patch)
treeadd5914f55801e346dd55eb1a7bacc44f6086f8a /test/content/repositories
parentb86b4680b6c2a3f0cceefaaf7c2e35417ec555df (diff)
Make Settings class
Diffstat (limited to 'test/content/repositories')
-rw-r--r--test/content/repositories/SettingRepository.test.ts13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/content/repositories/SettingRepository.test.ts b/test/content/repositories/SettingRepository.test.ts
index 363fcec..db4c528 100644
--- a/test/content/repositories/SettingRepository.test.ts
+++ b/test/content/repositories/SettingRepository.test.ts
@@ -1,27 +1,26 @@
import { SettingRepositoryImpl } from '../../../src/content/repositories/SettingRepository';
import { expect } from 'chai';
-import Keymaps from '../../../src/shared/settings/Keymaps';
-import Search from '../../../src/shared/settings/Search';
+import Settings from '../../../src/shared/settings/Settings';
describe('SettingRepositoryImpl', () => {
it('updates and gets current value', () => {
let sut = new SettingRepositoryImpl();
- let settings = {
- keymaps: Keymaps.fromJSON({}),
- search: Search.fromJSON({
+ let settings = Settings.fromJSON({
+ keymaps: {},
+ search:{
default: 'google',
engines: {
google: 'https://google.com/?q={}',
}
- }),
+ },
properties: {
hintchars: 'abcd1234',
smoothscroll: false,
complete: 'sbh',
},
blacklist: [],
- };
+ });
sut.set(settings);