From 802f99ba278a9b51d2320afb25853d052739124d Mon Sep 17 00:00:00 2001 From: nodexpertsdev Date: Fri, 6 Oct 2017 10:17:36 -0700 Subject: [PATCH] test: change concatenation to template literal PR-URL: https://github.com/nodejs/node/pull/15916 Reviewed-By: Daijiro Wachi Reviewed-By: Colin Ihrig Reviewed-By: Benjamin Gruenbaum Reviewed-By: Ruben Bridgewater --- test/parallel/test-fs-copyfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-fs-copyfile.js b/test/parallel/test-fs-copyfile.js index 30954bb9b73548..8ff1b0cb3eb0b1 100644 --- a/test/parallel/test-fs-copyfile.js +++ b/test/parallel/test-fs-copyfile.js @@ -42,7 +42,7 @@ assert.throws(() => { // Throws if the source does not exist. assert.throws(() => { - fs.copyFileSync(src + '__does_not_exist', dest, COPYFILE_EXCL); + fs.copyFileSync(`${src}__does_not_exist`, dest, COPYFILE_EXCL); }, /^Error: ENOENT: no such file or directory, copyfile/); // Copies asynchronously.