diff options
Diffstat (limited to 'test')
-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) + }); }); }); |