From a9ca8fd367be6dfdebf993bf851ef651550a4e4c Mon Sep 17 00:00:00 2001 From: nodexpertsdev Date: Fri, 6 Oct 2017 10:17:36 -0700 Subject: [PATCH] fs: change concatenation to template literal Changed test/parallel/test-fs-copyfile.js [x] `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes --- 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 28dbc605fcbe1a..bc543d3d1bc170 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.