diff --git a/default_app/main.js b/default_app/main.js index 9c6636389c9e..4e5ea96b03eb 100644 --- a/default_app/main.js +++ b/default_app/main.js @@ -3,7 +3,6 @@ const {app, dialog, shell, Menu} = require('electron') const fs = require('fs') const Module = require('module') const path = require('path') -const repl = require('repl') const url = require('url') // Parse command line options. @@ -315,6 +314,7 @@ function startRepl () { return } + const repl = require('repl') repl.start('> ').on('exit', () => { process.exit(0) }) diff --git a/spec/node-spec.js b/spec/node-spec.js index 93a247ef4ff6..443b9be5624b 100644 --- a/spec/node-spec.js +++ b/spec/node-spec.js @@ -225,7 +225,7 @@ describe('node feature', function () { process.stdout.write('test') }) - xit('should have isTTY defined', function () { + it('should have isTTY defined', function () { assert.equal(typeof process.stdout.isTTY, 'boolean') }) })