Skip to content

Commit 4b83c63

Browse files
test: use template string for concatenation
1 parent afabd14 commit 4b83c63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-trace-events-fs-sync.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ tests['fs.sync.chmod'] = 'fs.writeFileSync("fs.txt", "123", "utf8");' +
2323
'fs.chmodSync("fs.txt",100);' +
2424
'fs.unlinkSync("fs.txt")';
2525
tests['fs.sync.chown'] = 'fs.writeFileSync("fs.txt", "123", "utf8");' +
26-
'fs.chownSync("fs.txt",' + uid + ',' + gid + ');' +
26+
`fs.chownSync("fs.txt", ${uid}, ${gid});` +
2727
'fs.unlinkSync("fs.txt")';
2828
tests['fs.sync.close'] = 'fs.writeFileSync("fs.txt", "123", "utf8");' +
2929
'fs.unlinkSync("fs.txt")';
@@ -36,7 +36,7 @@ tests['fs.sync.fchmod'] = 'fs.writeFileSync("fs.txt", "123", "utf8");' +
3636
'fs.unlinkSync("fs.txt")';
3737
tests['fs.sync.fchown'] = 'fs.writeFileSync("fs.txt", "123", "utf8");' +
3838
'const fd = fs.openSync("fs.txt", "r+");' +
39-
'fs.fchownSync(fd,' + uid + ',' + gid + ');' +
39+
`fs.fchownSync(fd, ${uid}, ${gid});` +
4040
'fs.unlinkSync("fs.txt")';
4141
tests['fs.sync.fdatasync'] = 'fs.writeFileSync("fs.txt", "123", "utf8");' +
4242
'const fd = fs.openSync("fs.txt", "r+");' +
@@ -58,7 +58,7 @@ tests['fs.sync.futimes'] = 'fs.writeFileSync("fs.txt", "123", "utf8");' +
5858
'fs.futimesSync(fd,1,1);' +
5959
'fs.unlinkSync("fs.txt")';
6060
tests['fs.sync.lchown'] = 'fs.writeFileSync("fs.txt", "123", "utf8");' +
61-
'fs.lchownSync("fs.txt",' + uid + ',' + gid + ');' +
61+
`fs.lchownSync("fs.txt", ${uid}, ${gid});` +
6262
'fs.unlinkSync("fs.txt")';
6363
tests['fs.sync.link'] = 'fs.writeFileSync("fs.txt", "123", "utf8");' +
6464
'fs.linkSync("fs.txt", "linkx");' +

0 commit comments

Comments
 (0)