test: fix crash in electron::NativeWindowMac::Close() (#31750)

* test: fix crash in electron::NativeWindowMac::Close()

* remove extra close
This commit is contained in:
John Kleinschmidt 2021-11-08 22:27:32 -05:00 committed by GitHub
parent fe7f296339
commit 4b3aed503f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4162,8 +4162,6 @@ describe('BrowserWindow module', () => {
const leaveFullScreen = emittedOnce(w, 'leave-full-screen');
w.setFullScreen(false);
await leaveFullScreen;
w.close();
});
it('can be changed with setFullScreen method', async () => {