diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-11-28 20:45:22 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-11-28 20:45:22 +0900 |
commit | e1060f9bb218202d13a4382584f220d47173194c (patch) | |
tree | 3bbfeb46f693a0523d8837c9c194f213881241ed /test | |
parent | 6821372fc71779b458eed52f614d5a15571129d0 (diff) |
remove default form settings
Diffstat (limited to 'test')
-rw-r--r-- | test/shared/settings/values.test.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/shared/settings/values.test.js b/test/shared/settings/values.test.js index 2c222b6..2632cd7 100644 --- a/test/shared/settings/values.test.js +++ b/test/shared/settings/values.test.js @@ -98,9 +98,11 @@ describe("settings values", () => { search: { default: 'google', engines: { google: 'https://google.com/search?q={}' }}, blacklist: [ '*.slack.com'] }; - let form = values.formFromValue(value); + let allowed = ['scroll.vertically?{"count":1}', 'scroll.home' ]; + let form = values.formFromValue(value, allowed); expect(form.keymaps).to.have.property('scroll.vertically?{"count":1}', 'j'); + expect(form.keymaps).to.not.have.property('scroll.vertically?{"count":100}'); expect(form.keymaps).to.have.property('scroll.home', '0'); expect(Object.keys(form.keymaps)).to.have.lengthOf(2); expect(form.search).to.have.property('default', 'google'); |