mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
1 parent
c80d9d6a93
commit
d4fbffded4
1 file changed
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user