Browse Source

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>
v9.x-staging
nodexpertsdev 7 years ago
committed by Ruben Bridgewater
parent
commit
d4fbffded4
No known key found for this signature in database GPG Key ID: F07496B3EB3C1762
  1. 2
      test/parallel/test-fs-copyfile.js

2
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.

Loading…
Cancel
Save