mirror of
https://github.com/electron/electron.git
synced 2026-01-09 23:48:01 -05:00
chore: fix type check in systemPreferences module specs (#23064)
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user