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:
Milan Burda 2022-12-14 22:07:38 +01:00 committed by GitHub
parent fb461effae
commit 5fd7a43970
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 21 additions and 21 deletions

View file

@ -1479,7 +1479,7 @@ describe('chromium features', () => {
});
afterEach(() => {
(contents as any).destroy();
contents.destroy();
contents = null as any;
});
@ -1595,7 +1595,7 @@ describe('chromium features', () => {
afterEach(async () => {
if (contents) {
(contents as any).destroy();
contents.destroy();
contents = null as any;
}
await closeAllWindows();