mirror of
https://github.com/nodejs/node.git
synced 2025-04-28 13:40:37 +00:00

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>
16 lines
506 B
JavaScript
16 lines
506 B
JavaScript
'use strict';
|
|
// This tests that pausing and resuming stdin does not hang and timeout
|
|
// when done in a child process. See test/parallel/test-stdin-pause-resume.js
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
const child_process = require('child_process');
|
|
const path = require('path');
|
|
const cp = child_process.spawn(
|
|
process.execPath,
|
|
[path.resolve(__dirname, 'test-stdin-pause-resume.js')]
|
|
);
|
|
|
|
cp.on('exit', common.mustCall((code) => {
|
|
assert.strictEqual(code, 0);
|
|
}));
|