refactor: use helpers for command-line parsing in renderer/init.js (#16239)
This commit is contained in:
parent
baaeb7cece
commit
3f1d22759a
9 changed files with 63 additions and 52 deletions
|
@ -1971,7 +1971,7 @@ describe('BrowserWindow module', () => {
|
|||
const p = emittedOnce(ipcMain, 'answer')
|
||||
w.loadFile(path.join(fixtures, 'api', 'window-open-location-open.html'))
|
||||
const [, args, typeofProcess] = await p
|
||||
expect(args).to.include('--node-integration=false')
|
||||
expect(args).not.to.include('--node-integration')
|
||||
expect(args).to.include('--native-window-open')
|
||||
expect(typeofProcess).to.eql('undefined')
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue