Remove unused require
This commit is contained in:
parent
74196b96a1
commit
c01248ce47
1 changed files with 1 additions and 2 deletions
|
@ -7,7 +7,6 @@ const path = require('path')
|
|||
const os = require('os')
|
||||
const qs = require('querystring')
|
||||
const http = require('http')
|
||||
const net = require('net')
|
||||
const {closeWindow} = require('./window-helpers')
|
||||
|
||||
const {ipcRenderer, remote, screen} = require('electron')
|
||||
|
@ -1274,7 +1273,7 @@ describe('BrowserWindow module', function () {
|
|||
|
||||
it('adds --enable-sandbox to render processes created with sandbox: true', (done) => {
|
||||
const appPath = path.join(__dirname, 'fixtures', 'api', 'mixed-sandbox-app')
|
||||
©appProcess = ChildProcess.spawn(remote.process.execPath, [appPath, '--enable-mixed-sandbox'], {stdio: ['ignore', 'ipc', 'ignore']})
|
||||
appProcess = ChildProcess.spawn(remote.process.execPath, [appPath, '--enable-mixed-sandbox'], {stdio: ['ignore', 'ipc', 'ignore']})
|
||||
appProcess.once('message', (argv) => {
|
||||
assert.equal(argv.sandbox.includes('--enable-sandbox'), true)
|
||||
assert.equal(argv.sandbox.includes('--no-sandbox'), false)
|
||||
|
|
Loading…
Reference in a new issue