From 885c1878d436ee79f0870fa6f46af8727914b6d8 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Thu, 19 Jan 2023 18:59:20 -0800 Subject: [PATCH] test: fix nativeTheme test when system in dark mode (#36943) --- spec/api-native-theme-spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/api-native-theme-spec.ts b/spec/api-native-theme-spec.ts index 12b9951ad5..d813a5f5a2 100644 --- a/spec/api-native-theme-spec.ts +++ b/spec/api-native-theme-spec.ts @@ -36,6 +36,7 @@ describe('nativeTheme module', () => { }); it('should emit the "updated" event when it is set and the resulting "shouldUseDarkColors" value changes', async () => { + nativeTheme.themeSource = 'light'; let updatedEmitted = emittedOnce(nativeTheme, 'updated'); nativeTheme.themeSource = 'dark'; await updatedEmitted;