Browse Source

fix child process import

Shelley Vohr 7 years ago
parent
commit
f6d389b159
1 changed files with 3 additions and 2 deletions
  1. 3 2
      spec/chromium-spec.js

+ 3 - 2
spec/chromium-spec.js

@@ -4,10 +4,11 @@ const http = require('http')
 const path = require('path')
 const ws = require('ws')
 const url = require('url')
+const ChildProcess = require('child_process')
 const {ipcRenderer, remote} = require('electron')
 const {closeWindow} = require('./window-helpers')
 
-const {app, BrowserWindow, ipcMain, protocol, session, webContents, ChildProcess} = remote
+const {app, BrowserWindow, ipcMain, protocol, session, webContents} = remote
 
 const isCI = remote.getGlobal('isCi')
 
@@ -26,7 +27,7 @@ describe('chromium feature', () => {
     listener = null
   })
 
-  describe('command line switches', () => {
+  describe.only('command line switches', () => {
     describe('--lang switch', () => {
       const testLocale = (locale, result, done) => {
         const appPath = path.join(__dirname, 'fixtures', 'api', 'locale-check')