test: change concatenation to template literal

PR-URL: https://github.com/nodejs/node/pull/15916
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
nodexpertsdev authored and Ruben Bridgewater committed 2017-10-09 02:13:17 -07:00
1 parent c80d9d6a93
commit d4fbffded4
1 file changed
+1 -1
+1 -1
View File
@@ -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.