test: replace (webContents as any).destroy() with webContents.destroy() (#36653)
Co-authored-by: Milan Burda <miburda@microsoft.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
This commit is contained in:
parent
fb461effae
commit
5fd7a43970
9 changed files with 21 additions and 21 deletions
|
@ -55,7 +55,7 @@ describe('webRequest module', () => {
|
|||
contents = (webContents as any).create({ sandbox: true });
|
||||
await contents.loadFile(path.join(fixturesPath, 'pages', 'fetch.html'));
|
||||
});
|
||||
after(() => (contents as any).destroy());
|
||||
after(() => contents.destroy());
|
||||
|
||||
async function ajax (url: string, options = {}) {
|
||||
return contents.executeJavaScript(`ajax("${url}", ${JSON.stringify(options)})`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue