test: fix nativeTheme test when system in dark mode (#36966)

Co-authored-by: David Sanders <dsanders11@ucsbalum.com>

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
This commit is contained in:
trop[bot]
2023-01-20 14:34:52 -08:00
committed by GitHub
parent 1403a48add
commit b8c4a71cd7

View File

@@ -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;