Fix settings parsing

This commit is contained in:
Shin'ya Ueoka 2019-05-26 21:39:38 +09:00
parent a603c72055
commit ff85797ffc
2 changed files with 21 additions and 11 deletions

View file

@ -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)
});
});
});