Skip to content

Commit

Permalink
test: use common/fixtures in fs-symlink test
Browse files Browse the repository at this point in the history
PR-URL: #15830
Reviewed-By: Lance Ball <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
alexeym authored and targos committed Oct 18, 2017
1 parent e375b8c commit ce88af1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/parallel/test-fs-symlink-dir-junction.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,17 @@

'use strict';
const common = require('../common');
const fixtures = require('../common/fixtures');
const assert = require('assert');
const path = require('path');
const fs = require('fs');

// test creating and reading symbolic link
const linkData = path.join(common.fixturesDir, 'cycles/');
const linkData = fixtures.path('cycles/');
const linkPath = path.join(common.tmpDir, 'cycles_link');

common.refreshTmpDir();

console.log(`linkData: ${linkData}`);
console.log(`linkPath: ${linkPath}`);

fs.symlink(linkData, linkPath, 'junction', common.mustCall(function(err) {
assert.ifError(err);

Expand Down

0 comments on commit ce88af1

Please sign in to comment.