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 <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information
Klemen Kogovsek authored and MylesBorins committed Nov 28, 2017
1 parent 5e2231e commit f226ca6
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 f226ca6

Please sign in to comment.