chore: lint spec-main (#20835)

This commit is contained in:
Jeremy Apthorp 2019-11-01 13:37:02 -07:00 committed by GitHub
parent 1fed1ed577
commit ecd9e1f26e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 589 additions and 533 deletions

View file

@ -82,7 +82,7 @@ describe('debugger module', () => {
w.webContents.once('devtools-opened', () => {
w.webContents.debugger.detach()
})
w.webContents.debugger.on('detach', (e, reason) => {
w.webContents.debugger.on('detach', () => {
expect(w.webContents.debugger.isAttached()).to.be.false()
expect((w as any).devToolsWebContents.isDestroyed()).to.be.false()
done()
@ -201,7 +201,7 @@ describe('debugger module', () => {
done(`unexpected error : ${err}`)
}
w.webContents.debugger.on('message', (event, method, params) => {
w.webContents.debugger.on('message', (event, method) => {
// loadingFinished indicates that page has been loaded and it did not
// crash because of invalid UTF-8 data
if (method === 'Network.loadingFinished') {