build: update eslint + eslint plugins (#22777)
* build: run eslint --fix * chore: manually fix all hasOwnProperty errors * chore: manually fix all void 0 vs undefined errors * chore: manually fix all async-in-promise errors * chore: manually fix lexical declaration in case block
This commit is contained in:
parent
42f138282f
commit
b87b501161
62 changed files with 280 additions and 280 deletions
|
@ -277,10 +277,10 @@ ifdescribe(!process.mas && !process.env.DISABLE_CRASH_REPORTER_TESTS && process.
|
|||
const w = new BrowserWindow({ show: false, webPreferences: { nodeIntegration: true } })
|
||||
w.loadURL('about:blank')
|
||||
await expect(
|
||||
w.webContents.executeJavaScript(`require('electron').crashReporter.setUploadToServer(true)`)
|
||||
w.webContents.executeJavaScript('require(\'electron\').crashReporter.setUploadToServer(true)')
|
||||
).to.eventually.be.rejected()
|
||||
await expect(
|
||||
w.webContents.executeJavaScript(`require('electron').crashReporter.getUploadToServer()`)
|
||||
w.webContents.executeJavaScript('require(\'electron\').crashReporter.getUploadToServer()')
|
||||
).to.eventually.be.rejected()
|
||||
})
|
||||
it('sets uploadToServer false when called with false', function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue