diff options
author | Rich Trott <rtrott@gmail.com> | 2017-11-22 14:02:19 -0800 |
---|---|---|
committer | Jon Moss <me@jonathanmoss.me> | 2017-11-28 16:17:53 -0500 |
commit | ecbae568b7818ef056fc3fe9cc6e5502fb9c9269 (patch) | |
tree | 213c21c5cf202fde782c849edbf64479075580cf /test/parallel/test-fs-realpath.js | |
parent | 5ebcb7fcaff25e982d1d800f428682152ffa9298 (diff) | |
download | android-node-v8-ecbae568b7818ef056fc3fe9cc6e5502fb9c9269.tar.gz android-node-v8-ecbae568b7818ef056fc3fe9cc6e5502fb9c9269.tar.bz2 android-node-v8-ecbae568b7818ef056fc3fe9cc6e5502fb9c9269.zip |
test: remove common.tmpDirName
`common.tmpDirName` is used in only one test and can be replaced with
`path.basename(common.tmpDir)`.
PR-URL: https://github.com/nodejs/node/pull/17266
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Diffstat (limited to 'test/parallel/test-fs-realpath.js')
-rw-r--r-- | test/parallel/test-fs-realpath.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-fs-realpath.js b/test/parallel/test-fs-realpath.js index 013e801514..4ea9bfdf48 100644 --- a/test/parallel/test-fs-realpath.js +++ b/test/parallel/test-fs-realpath.js @@ -111,7 +111,7 @@ function test_simple_relative_symlink(realpath, realpathSync, callback) { const entry = `${tmpDir}/symlink`; const expected = `${tmpDir}/cycles/root.js`; [ - [entry, `../${common.tmpDirName}/cycles/root.js`] + [entry, `../${path.basename(tmpDir)}/cycles/root.js`] ].forEach(function(t) { try { fs.unlinkSync(t[0]); } catch (e) {} console.log('fs.symlinkSync(%j, %j, %j)', t[1], t[0], 'file'); |