mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
closeWindow's assertNotWindows path scheduled a detached setTimeout that asserted BaseWindow.getAllWindows().length === 0; by the time the timer fired the next test's beforeEach had created windows, so the assertion rejected unhandled. Now it's an inline awaited check so the failure is attributed to the right test. no-unawaited-load flags loadURL()/loadFile() calls whose promise isn't awaited, returned, assigned, .then/.catch'd, passed as an argument, or explicitly voided. 393 warnings across spec/ — set to 'warn' for now.