chore: tsify browser-window (#24326)
* chore: tsify browser-window * fix focus * also tsify top-level-window
This commit is contained in:
parent
1c49e4e376
commit
80e5007c47
8 changed files with 227 additions and 194 deletions
|
@ -1495,7 +1495,7 @@ describe('BrowserWindow module', () => {
|
|||
afterEach(closeAllWindows);
|
||||
it('returns the window with id', () => {
|
||||
const w = new BrowserWindow({ show: false });
|
||||
expect(BrowserWindow.fromId(w.id).id).to.equal(w.id);
|
||||
expect(BrowserWindow.fromId(w.id)!.id).to.equal(w.id);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue