test: cleanup let xyz = null as unknown as T; (#37335)
This commit is contained in:
parent
fcfbcbc7e1
commit
cf10c19c33
7 changed files with 41 additions and 41 deletions
|
@ -49,7 +49,7 @@ describe('webRequest module', () => {
|
|||
protocol.unregisterProtocol('cors');
|
||||
});
|
||||
|
||||
let contents: WebContents = null as unknown as WebContents;
|
||||
let contents: WebContents;
|
||||
// NB. sandbox: true is used because it makes navigations much (~8x) faster.
|
||||
before(async () => {
|
||||
contents = (webContents as typeof ElectronInternal.WebContents).create({ sandbox: true });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue