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:
parent
c80d9d6a93
commit
d4fbffded4
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user