From f9b292c9549dd918dd0ff7268d8d5f22fade815c Mon Sep 17 00:00:00 2001 From: boydfd Date: Sun, 16 Jul 2017 15:16:06 +0800 Subject: [PATCH] test: change style in test-cli-bad-options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace string concatenation in test/parallel/test-cli-bad-options.js with template literal. Adjust argument layout for readability. PR-URL: https://github.com/nodejs/node/pull/14274 Reviewed-By: Rich Trott Reviewed-By: Gibson Fahnestock Reviewed-By: Evan Lucas Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen Reviewed-By: Refael Ackermann Reviewed-By: Gireesh Punathil --- 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` + ); }