mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
aa6fac68da
ESLint 4.x has stricter linting than previous versions. We are currently using the legacy indentation rules in the test directory. This commit changes the indentation of files to comply with the stricter 4.x linting and enable stricter linting in the test directory. PR-URL: https://github.com/nodejs/node/pull/14431 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
19 lines
517 B
JavaScript
19 lines
517 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
const repl = require('repl');
|
|
const zlib = require('zlib');
|
|
|
|
// just use builtin stream inherited from Duplex
|
|
const putIn = zlib.createGzip();
|
|
const testMe = repl.start('', putIn, function(cmd, context, filename,
|
|
callback) {
|
|
callback(null, cmd);
|
|
});
|
|
|
|
testMe._domain.on('error', common.mustNotCall());
|
|
|
|
testMe.complete('', function(err, results) {
|
|
assert.strictEqual(err, null);
|
|
});
|