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
|
@ -13,7 +13,7 @@ const fixturesPath = path.resolve(__dirname, 'fixtures');
|
|||
|
||||
describe('ipc module', () => {
|
||||
describe('invoke', () => {
|
||||
let w = (null as unknown as BrowserWindow);
|
||||
let w: BrowserWindow;
|
||||
|
||||
before(async () => {
|
||||
w = new BrowserWindow({ show: false, webPreferences: { nodeIntegration: true, contextIsolation: false } });
|
||||
|
@ -127,7 +127,7 @@ describe('ipc module', () => {
|
|||
});
|
||||
|
||||
describe('ordering', () => {
|
||||
let w = (null as unknown as BrowserWindow);
|
||||
let w: BrowserWindow;
|
||||
|
||||
before(async () => {
|
||||
w = new BrowserWindow({ show: false, webPreferences: { nodeIntegration: true, contextIsolation: false } });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue