diff --git a/spec-main/api-system-preferences-spec.ts b/spec-main/api-system-preferences-spec.ts index ed7533aca813..b25127f06b9a 100644 --- a/spec-main/api-system-preferences-spec.ts +++ b/spec-main/api-system-preferences-spec.ts @@ -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'); }); });