Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: remove util from child-process test
Simple PR inspired by #3324

Util is being used in test-child-process-spawnsync-input.js for string templating.

This PR replaces that with a template string.s
  • Loading branch information
Myles Borins committed Oct 13, 2015
commit 5096d76ef5b4db040d7e2adbc90d8b4f043d183d
3 changes: 1 addition & 2 deletions test/parallel/test-child-process-spawnsync-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
var common = require('../common');
var assert = require('assert');
var os = require('os');
var util = require('util');

var spawnSync = require('child_process').spawnSync;

Expand All @@ -15,7 +14,7 @@ var msgErrBuf = new Buffer(msgErr + '\n');

var args = [
'-e',
util.format('console.log("%s"); console.error("%s");', msgOut, msgErr)
`console.log("${msgOut}"); console.error("${msgErr}");`
];

var ret;
Expand Down