refactor: use helpers for command-line parsing in renderer/init.js (#16239)

This commit is contained in:
Milan Burda 2019-01-03 17:22:34 +01:00 committed by John Kleinschmidt
parent baaeb7cece
commit 3f1d22759a
9 changed files with 63 additions and 52 deletions

View file

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