From b515bcad98effb07f308cce9dacd04bf5f4bb55f Mon Sep 17 00:00:00 2001 From: Himadri Ganguly Date: Mon, 2 Aug 2021 11:06:01 +0530 Subject: [PATCH] test: use template to concatenate string --- test/parallel/test-trace-events-fs-sync.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-trace-events-fs-sync.js b/test/parallel/test-trace-events-fs-sync.js index 69a0ae2778245a..78a5059bc91f5f 100644 --- a/test/parallel/test-trace-events-fs-sync.js +++ b/test/parallel/test-trace-events-fs-sync.js @@ -23,7 +23,7 @@ tests['fs.sync.chmod'] = 'fs.writeFileSync("fs.txt", "123", "utf8");' + 'fs.chmodSync("fs.txt",100);' + 'fs.unlinkSync("fs.txt")'; tests['fs.sync.chown'] = 'fs.writeFileSync("fs.txt", "123", "utf8");' + - 'fs.chownSync("fs.txt",' + uid + ',' + gid + ');' + + `fs.chownSync("fs.txt", ${uid}, ${gid});` + 'fs.unlinkSync("fs.txt")'; tests['fs.sync.close'] = 'fs.writeFileSync("fs.txt", "123", "utf8");' + 'fs.unlinkSync("fs.txt")'; @@ -36,7 +36,7 @@ tests['fs.sync.fchmod'] = 'fs.writeFileSync("fs.txt", "123", "utf8");' + 'fs.unlinkSync("fs.txt")'; tests['fs.sync.fchown'] = 'fs.writeFileSync("fs.txt", "123", "utf8");' + 'const fd = fs.openSync("fs.txt", "r+");' + - 'fs.fchownSync(fd,' + uid + ',' + gid + ');' + + `fs.fchownSync(fd, ${uid}, ${gid});` + 'fs.unlinkSync("fs.txt")'; tests['fs.sync.fdatasync'] = 'fs.writeFileSync("fs.txt", "123", "utf8");' + 'const fd = fs.openSync("fs.txt", "r+");' + @@ -58,7 +58,7 @@ tests['fs.sync.futimes'] = 'fs.writeFileSync("fs.txt", "123", "utf8");' + 'fs.futimesSync(fd,1,1);' + 'fs.unlinkSync("fs.txt")'; tests['fs.sync.lchown'] = 'fs.writeFileSync("fs.txt", "123", "utf8");' + - 'fs.lchownSync("fs.txt",' + uid + ',' + gid + ');' + + `fs.lchownSync("fs.txt", ${uid}, ${gid});` + 'fs.unlinkSync("fs.txt")'; tests['fs.sync.link'] = 'fs.writeFileSync("fs.txt", "123", "utf8");' + 'fs.linkSync("fs.txt", "linkx");' +