Skip to content

Commit

Permalink
test: used fixturesDir from fixtures modules
Browse files Browse the repository at this point in the history
In test-fs-realpath-on-substed-drive, require common/fixtures
module and swapped the location of fixturesDir
from common to fixtures module.

PR-URL: #16813
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
Klemen Kogovsek authored and MylesBorins committed Nov 17, 2017
1 parent 4faf2ec commit 315fba8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/parallel/test-fs-realpath-on-substed-drive.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const common = require('../common');
if (!common.isWindows)
common.skip('Test for Windows only');

const fixtures = require('../common/fixtures');

const assert = require('assert');
const fs = require('fs');
const spawnSync = require('child_process').spawnSync;
Expand All @@ -16,7 +18,7 @@ let drive;
let i;
for (i = 0; i < driveLetters.length; ++i) {
drive = `${driveLetters[i]}:`;
result = spawnSync('subst', [drive, common.fixturesDir]);
result = spawnSync('subst', [drive, fixtures.fixturesDir]);
if (result.status === 0)
break;
}
Expand Down

0 comments on commit 315fba8

Please sign in to comment.