mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user