From abbe7417f255a600f18a4fc1595eb55860c4ab80 Mon Sep 17 00:00:00 2001 From: Robo Date: Thu, 9 Apr 2020 15:55:47 -0700 Subject: [PATCH] chore: fix type check in systemPreferences module specs (#23064) --- spec-main/api-system-preferences-spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); }); });