test: use maximize event instead of resize event (#34740)

This commit is contained in:
David Sanders 2022-06-27 01:29:55 -07:00 committed by GitHub
parent e2c58d164d
commit 8238cca87b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1354,7 +1354,7 @@ describe('BrowserWindow module', () => {
w.setAspectRatio(16 / 11);
const maximize = emittedOnce(w, 'resize');
const maximize = emittedOnce(w, 'maximize');
w.show();
w.maximize();
await maximize;