aboutsummaryrefslogtreecommitdiff
path: root/test/shared/SettingData.test.ts
diff options
context:
space:
mode:
authorShin'ya UEOKA <ueokande@i-beam.org>2019-10-05 02:06:02 +0000
committerShin'ya UEOKA <ueokande@i-beam.org>2019-10-06 12:58:59 +0000
commit574692551a27ea56660bf2061daeaa0d34beaff4 (patch)
tree414a7f1de8dfb24af45d7e392b72549bc67ad48a /test/shared/SettingData.test.ts
parent2116ac90a6dfdb0910d7ad2896f70a052aa635cc (diff)
Make Properties class
Diffstat (limited to 'test/shared/SettingData.test.ts')
-rw-r--r--test/shared/SettingData.test.ts15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/shared/SettingData.test.ts b/test/shared/SettingData.test.ts
index f8995d9..b5bf70e 100644
--- a/test/shared/SettingData.test.ts
+++ b/test/shared/SettingData.test.ts
@@ -5,6 +5,7 @@ import Settings from '../../src/shared/Settings';
import { expect } from 'chai';
import Keymaps from '../../src/shared/settings/Keymaps';
import Search from '../../src/shared/settings/Search';
+import Properties from '../../src/shared/settings/Properties';
describe('shared/SettingData', () => {
describe('FormKeymaps', () => {
@@ -62,7 +63,7 @@ describe('shared/SettingData', () => {
expect({
keymaps: settings.keymaps.toJSON(),
search: settings.search.toJSON(),
- properties: settings.properties,
+ properties: settings.properties.toJSON(),
blacklist: settings.blacklist,
}).to.deep.equal(JSON.parse(o));
});
@@ -78,11 +79,11 @@ describe('shared/SettingData', () => {
google: "https://google.com/search?q={}",
},
}),
- properties: {
+ properties: Properties.fromJSON({
hintchars: "abcdefghijklmnopqrstuvwxyz",
smoothscroll: false,
complete: "sbh"
- },
+ }),
blacklist: [],
};
@@ -90,7 +91,7 @@ describe('shared/SettingData', () => {
expect(JSON.parse(json)).to.deep.equal({
keymaps: o.keymaps.toJSON(),
search: o.search.toJSON(),
- properties: o.properties,
+ properties: o.properties.toJSON(),
blacklist: o.blacklist,
});
});
@@ -123,7 +124,7 @@ describe('shared/SettingData', () => {
expect({
keymaps: settings.keymaps.toJSON(),
search: settings.search.toJSON(),
- properties: settings.properties,
+ properties: settings.properties.toJSON(),
blacklist: settings.blacklist,
}).to.deep.equal({
keymaps: {
@@ -159,11 +160,11 @@ describe('shared/SettingData', () => {
"google": "https://google.com/search?q={}"
}
}),
- properties: {
+ properties: Properties.fromJSON({
hintchars: "abcdefghijklmnopqrstuvwxyz",
smoothscroll: false,
complete: "sbh"
- },
+ }),
blacklist: []
};