aboutsummaryrefslogtreecommitdiff
path: root/test/shared/settings/values.test.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-11-28 21:41:02 +0900
committerGitHub <noreply@github.com>2017-11-28 21:41:02 +0900
commitbd9501684d00321dcb51b05396e517276482f4d2 (patch)
treedabdca517145377cb5cea836739d25de74230fde /test/shared/settings/values.test.js
parent0b37c2250e21e8c40c2c5e9abfe51903458cc94d (diff)
parenta69f33f569f97791c712234971f943288df8778a (diff)
Merge pull request #253 from ueokande/qa-0.7
QA 0.7
Diffstat (limited to 'test/shared/settings/values.test.js')
-rw-r--r--test/shared/settings/values.test.js4
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');