diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-29 20:07:23 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-29 20:07:23 +0900 |
commit | 68673957edad21700c58d252542a0aee04115d22 (patch) | |
tree | 7a58c00d82372a27b03fcbcdbf63d3fc7ec52c39 /test/shared | |
parent | aea17a52d692310ac459410c7d6b4e0bfd5e0225 (diff) | |
parent | 698f905145755954647f91ae01f5966b9e35a91e (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.ts | 4 |
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) + }); }); }); |