test: vendor node-is-valid-window (#39965)

This commit is contained in:
David Sanders 2023-09-25 03:43:57 -07:00 committed by GitHub
parent fdf1ecec47
commit 18f517d8a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 181 additions and 14 deletions

View file

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