node/test/parallel/test-repl-console.js
Michaël Zasso d1aabd6264 test: fix style issues after eslint update
Replace var keyword with const or let.

PR-URL: https://github.com/nodejs/io.js/pull/2286
Reviewed-By: Roman Reiss <me@silverwind.io>
2016-01-13 23:16:17 +01:00

21 lines
488 B
JavaScript

'use strict';
const common = require('../common');
const assert = require('assert');
const repl = require('repl');
// Create a dummy stream that does nothing
const stream = new common.ArrayStream();
var r = repl.start({
input: stream,
output: stream,
useGlobal: false
});
// ensure that the repl context gets its own "console" instance
assert(r.context.console);
// ensure that the repl console instance is not the global one
assert.notStrictEqual(r.context.console, console);