chore: lint spec-main (#20835)
This commit is contained in:
parent
1fed1ed577
commit
ecd9e1f26e
51 changed files with 589 additions and 533 deletions
|
@ -1,8 +1,8 @@
|
|||
import { expect } from 'chai'
|
||||
import { BrowserWindow } from 'electron'
|
||||
import { emittedOnce } from './events-helpers';
|
||||
import { emittedOnce } from './events-helpers'
|
||||
|
||||
async function ensureWindowIsClosed(window: BrowserWindow | null) {
|
||||
async function ensureWindowIsClosed (window: BrowserWindow | null) {
|
||||
if (window && !window.isDestroyed()) {
|
||||
if (window.webContents && !window.webContents.isDestroyed()) {
|
||||
// If a window isn't destroyed already, and it has non-destroyed WebContents,
|
||||
|
@ -40,8 +40,8 @@ export const closeWindow = async (
|
|||
}
|
||||
}
|
||||
|
||||
export async function closeAllWindows() {
|
||||
export async function closeAllWindows () {
|
||||
for (const w of BrowserWindow.getAllWindows()) {
|
||||
await closeWindow(w, {assertNotWindows: false})
|
||||
await closeWindow(w, { assertNotWindows: false })
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue