diff options
author | Raphael Rheault <raphael.rheault@gmail.com> | 2017-10-06 13:11:15 -0400 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2017-10-28 23:10:01 +0200 |
commit | 6ff2909ef6dac12ca8975f0c888b3daa7b5f4ea0 (patch) | |
tree | e678fb6da795dc97f6cebcacbbb43a65d58baa68 | |
parent | 50fe1a840915a22517ffd2c480558409dbfd6677 (diff) | |
download | node-new-6ff2909ef6dac12ca8975f0c888b3daa7b5f4ea0.tar.gz |
test: use fixtures module in test-fs-realpath.js
PR-URL: https://github.com/nodejs/node/pull/15904
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
-rw-r--r-- | test/parallel/test-fs-realpath.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/parallel/test-fs-realpath.js b/test/parallel/test-fs-realpath.js index a9ec65168d..3af0092f61 100644 --- a/test/parallel/test-fs-realpath.js +++ b/test/parallel/test-fs-realpath.js @@ -21,6 +21,8 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); + const assert = require('assert'); const fs = require('fs'); const path = require('path'); @@ -133,7 +135,7 @@ function test_simple_absolute_symlink(callback) { console.log('using type=%s', type); const entry = `${tmpAbsDir}/symlink`; - const expected = `${common.fixturesDir}/nested-index/one`; + const expected = fixtures.path('nested-index', 'one'); [ [entry, expected] ].forEach(function(t) { @@ -156,7 +158,7 @@ function test_deep_relative_file_symlink(callback) { return runNextTest(); } - const expected = path.join(common.fixturesDir, 'cycles', 'root.js'); + const expected = fixtures.path('cycles', 'root.js'); const linkData1 = path .relative(path.join(targetsAbsDir, 'nested-index', 'one'), expected); @@ -185,7 +187,7 @@ function test_deep_relative_dir_symlink(callback) { common.printSkipMessage('symlink test (no privs)'); return runNextTest(); } - const expected = path.join(common.fixturesDir, 'cycles', 'folder'); + const expected = fixtures.path('cycles', 'folder'); const path1b = path.join(targetsAbsDir, 'nested-index', 'one'); const linkPath1b = path.join(path1b, 'symlink1-dir'); const linkData1b = path.relative(path1b, expected); |