aboutsummaryrefslogtreecommitdiff
path: root/test/shared
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-05-29 20:07:23 +0900
committerGitHub <noreply@github.com>2019-05-29 20:07:23 +0900
commit68673957edad21700c58d252542a0aee04115d22 (patch)
tree7a58c00d82372a27b03fcbcdbf63d3fc7ec52c39 /test/shared
parentaea17a52d692310ac459410c7d6b4e0bfd5e0225 (diff)
parent698f905145755954647f91ae01f5966b9e35a91e (diff)
Merge pull request #596 from ueokande/qa-0.23
QA 0.23
Diffstat (limited to 'test/shared')
-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)
+ });
});
});