chore: tsify browser-window (#24326)

* chore: tsify browser-window

* fix focus

* also tsify top-level-window
This commit is contained in:
Jeremy Rose 2020-06-28 18:22:55 -07:00 committed by GitHub
parent 1c49e4e376
commit 80e5007c47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 227 additions and 194 deletions

View file

@ -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);
});
});