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.
  • Loading branch information
Klemen Kogovsek authored and Trott committed Nov 8, 2017
1 parent f2cb78c commit 1eb03a8
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 1eb03a8

Please sign in to comment.