test: vendor node-is-valid-window (#39965)
This commit is contained in:
parent
fdf1ecec47
commit
18f517d8a6
13 changed files with 181 additions and 14 deletions
|
@ -5891,9 +5891,7 @@ describe('BrowserWindow module', () => {
|
|||
afterEach(closeAllWindows);
|
||||
it('returns valid handle', () => {
|
||||
const w = new BrowserWindow({ show: false });
|
||||
// The module's source code is hosted at
|
||||
// https://github.com/electron/node-is-valid-window
|
||||
const isValidWindow = require('is-valid-window');
|
||||
const isValidWindow = require('@electron-ci/is-valid-window');
|
||||
expect(isValidWindow(w.getNativeWindowHandle())).to.be.true('is valid window');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue