Skip to content

Commit abbe741

Browse files
authored
chore: fix type check in systemPreferences module specs (electron#23064)
1 parent 9fb06b9 commit abbe741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec-main/api-system-preferences-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ describe('systemPreferences module', () => {
111111

112112
it('throws when type is not valid', () => {
113113
expect(() => {
114-
systemPreferences.setUserDefault(KEY, 'abc', 'foo');
114+
systemPreferences.setUserDefault(KEY, 'abc' as any, 'foo');
115115
}).to.throw('Invalid type: abc');
116116
});
117117
});

0 commit comments

Comments
 (0)