From 8548021c97a18bca66a24ea2d1d6c548c409a975 Mon Sep 17 00:00:00 2001 From: boydfd Date: Sun, 16 Jul 2017 15:16:06 +0800 Subject: [PATCH] test: change style in parallel bad options Replace string concatenation in test/parallel/test-cli-bad-options.js with template literals. --- test/parallel/test-cli-bad-options.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-cli-bad-options.js b/test/parallel/test-cli-bad-options.js index 8283ab078fe7f6..15a385b99f66d9 100644 --- a/test/parallel/test-cli-bad-options.js +++ b/test/parallel/test-cli-bad-options.js @@ -18,6 +18,8 @@ function requiresArgument(option) { assert.strictEqual(r.status, 9); const msg = r.stderr.split(/\r?\n/)[0]; - assert.strictEqual(msg, process.execPath + ': ' + option + - ' requires an argument'); + assert.strictEqual( + msg, + `${process.execPath}: ${option} requires an argument` + ); }