summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-spawnsync-input.js
diff options
context:
space:
mode:
authorMyles Borins <mborins@us.ibm.com>2015-10-12 21:26:50 -0700
committerJames M Snell <jasnell@gmail.com>2015-10-14 10:02:47 -0700
commit6c032a8333c7be3e5de64d6a673db9bb030d8b7a (patch)
tree2533631db984d624439d8496f0c4f01a99d9f0c6 /test/parallel/test-child-process-spawnsync-input.js
parentab03635fb1fd9d380d214116d2ba5bd96b2b9311 (diff)
downloadandroid-node-v8-6c032a8333c7be3e5de64d6a673db9bb030d8b7a.tar.gz
android-node-v8-6c032a8333c7be3e5de64d6a673db9bb030d8b7a.tar.bz2
android-node-v8-6c032a8333c7be3e5de64d6a673db9bb030d8b7a.zip
test: replace util with backtick strings
Now that we have backticks we no longer need to use util.format to template strings! This commit was inspired by #3324, and it replaces instances of util.format with backtick strings in a number of tests Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/3359
Diffstat (limited to 'test/parallel/test-child-process-spawnsync-input.js')
-rw-r--r--test/parallel/test-child-process-spawnsync-input.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/parallel/test-child-process-spawnsync-input.js b/test/parallel/test-child-process-spawnsync-input.js
index 4118b74dc3..f043d0c5e3 100644
--- a/test/parallel/test-child-process-spawnsync-input.js
+++ b/test/parallel/test-child-process-spawnsync-input.js
@@ -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;
@@ -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;