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 2017-10-06 10:17:36 -07:00 committed by Ruben Bridgewater
parent c80d9d6a93
commit d4fbffded4
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

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.