diff options
Diffstat (limited to 'test/parallel/test-child-process-spawnsync-input.js')
-rw-r--r-- | test/parallel/test-child-process-spawnsync-input.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-child-process-spawnsync-input.js b/test/parallel/test-child-process-spawnsync-input.js index 0116f09292..c8c63e4f93 100644 --- a/test/parallel/test-child-process-spawnsync-input.js +++ b/test/parallel/test-child-process-spawnsync-input.js @@ -9,8 +9,8 @@ const msgOut = 'this is stdout'; const msgErr = 'this is stderr'; // this is actually not os.EOL? -const msgOutBuf = new Buffer(msgOut + '\n'); -const msgErrBuf = new Buffer(msgErr + '\n'); +const msgOutBuf = Buffer.from(msgOut + '\n'); +const msgErrBuf = Buffer.from(msgErr + '\n'); const args = [ '-e', @@ -71,14 +71,14 @@ assert.strictEqual(ret.stdout.toString('utf8'), options.input); assert.strictEqual(ret.stderr.toString('utf8'), ''); options = { - input: new Buffer('hello world') + input: Buffer.from('hello world') }; ret = spawnSync('cat', [], options); checkSpawnSyncRet(ret); assert.deepEqual(ret.stdout, options.input); -assert.deepEqual(ret.stderr, new Buffer('')); +assert.deepEqual(ret.stderr, Buffer.from('')); verifyBufOutput(spawnSync(process.execPath, args)); |