aboutsummaryrefslogtreecommitdiff
path: root/test/shared/Settings.test.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-05-26 21:39:38 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-05-26 21:39:38 +0900
commitff85797ffcce6dffe9a36ec14e1d1efbba1c1e5b (patch)
treeb167f58f5a5c306b75c4f5a6956c5b67ae53f7b0 /test/shared/Settings.test.ts
parenta603c72055ef6ec5d2d494320e53eeceb9f51c53 (diff)
Fix settings parsing
Diffstat (limited to 'test/shared/Settings.test.ts')
-rw-r--r--test/shared/Settings.test.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/shared/Settings.test.ts b/test/shared/Settings.test.ts
index 02cd022..04b28c4 100644
--- a/test/shared/Settings.test.ts
+++ b/test/shared/Settings.test.ts
@@ -186,5 +186,9 @@ describe('Settings', () => {
expect(value.search.engines).to.be.an('object');
expect(value.blacklist).to.be.empty;
});
+
+ it('throws a TypeError with an unknown field', () => {
+ expect(() => settings.valueOf({ name: 'alice' })).to.throw(TypeError)
+ });
});
});