test: remove a few casts to any (#39713)
This commit is contained in:
parent
c5b20eeb13
commit
d76a35afe4
7 changed files with 29 additions and 21 deletions
|
@ -64,7 +64,7 @@ describe('debugger module', () => {
|
|||
});
|
||||
await detach;
|
||||
expect(w.webContents.debugger.isAttached()).to.be.false();
|
||||
expect((w as any).devToolsWebContents.isDestroyed()).to.be.false();
|
||||
expect(w.devToolsWebContents.isDestroyed()).to.be.false();
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -119,9 +119,9 @@ describe('debugger module', () => {
|
|||
w.webContents.debugger.sendCommand('Console.enable');
|
||||
const [,, params] = await message;
|
||||
w.webContents.debugger.detach();
|
||||
expect((params as any).message.level).to.equal('log');
|
||||
expect((params as any).message.url).to.equal(url);
|
||||
expect((params as any).message.text).to.equal('a');
|
||||
expect(params.message.level).to.equal('log');
|
||||
expect(params.message.url).to.equal(url);
|
||||
expect(params.message.text).to.equal('a');
|
||||
});
|
||||
|
||||
it('returns error message when command fails', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue