chore: fix type check in systemPreferences module specs (#23064)

This commit is contained in:
Robo 2020-04-09 15:55:47 -07:00 committed by GitHub
parent 9fb06b923b
commit abbe7417f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,7 +111,7 @@ describe('systemPreferences module', () => {
it('throws when type is not valid', () => {
expect(() => {
systemPreferences.setUserDefault(KEY, 'abc', 'foo');
systemPreferences.setUserDefault(KEY, 'abc' as any, 'foo');
}).to.throw('Invalid type: abc');
});
});