Fix settings parsing
This commit is contained in:
parent
a603c72055
commit
ff85797ffc
2 changed files with 21 additions and 11 deletions
|
@ -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)
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Reference in a new issue