chore: upgrade to Node.js v14.9.0 (#25249)
This commit is contained in:
parent
4d1dab849f
commit
77038b7bda
66 changed files with 724 additions and 1343 deletions
|
@ -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')
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue