chore: upgrade to Node.js v14.9.0 (#25249)

This commit is contained in:
Shelley Vohr 2020-09-17 16:08:57 -06:00 committed by GitHub
parent 4d1dab849f
commit 77038b7bda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
66 changed files with 724 additions and 1343 deletions

View file

@ -498,11 +498,17 @@ ifdescribe(features.isRemoteModuleEnabled())('remote module', () => {
it('should search module from the user app', async () => {
expectPathsEqual(
path.normalize(await remotely(() => require('electron').remote.process.mainModule!.filename)),
path.normalize(await remotely(() => {
const { remote } = require('electron');
return (remote as any).process.mainModule.filename;
})),
path.resolve(__dirname, 'index.js')
);
expectPathsEqual(
path.normalize(await remotely(() => require('electron').remote.process.mainModule!.paths[0])),
path.normalize(await remotely(() => {
const { remote } = require('electron');
return (remote as any).process.mainModule.paths[0];
})),
path.resolve(__dirname, 'node_modules')
);
});