Browse Source

test: replace fixturesDir to use fixtures module

PR-URL: https://github.com/nodejs/node/pull/15831
iReviewed-By: Ryan Graham <r.m.graham@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
v9.x-staging
Josh Lim 7 years ago
committed by Gireesh Punathil
parent
commit
e04e9270cc
  1. 3
      test/parallel/test-fs-symlink.js

3
test/parallel/test-fs-symlink.js

@ -21,6 +21,7 @@
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');
const fixtures = require('../common/fixtures');
if (!common.canCreateSymLink()) if (!common.canCreateSymLink())
common.skip('insufficient privileges'); common.skip('insufficient privileges');
@ -34,7 +35,7 @@ let fileTime;
common.refreshTmpDir(); common.refreshTmpDir();
// test creating and reading symbolic link // test creating and reading symbolic link
const linkData = path.join(common.fixturesDir, '/cycles/root.js'); const linkData = fixtures.path('/cycles/root.js');
const linkPath = path.join(common.tmpDir, 'symlink1.js'); const linkPath = path.join(common.tmpDir, 'symlink1.js');
fs.symlink(linkData, linkPath, common.mustCall(function(err) { fs.symlink(linkData, linkPath, common.mustCall(function(err) {

Loading…
Cancel
Save