Skip to content

Commit b60ac4f

Browse files
Klemen KogovsekMylesBorins
Klemen Kogovsek
authored andcommitted
test: used fixturesDir from fixtures modules
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>
1 parent 340b6e2 commit b60ac4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/parallel/test-fs-realpath-on-substed-drive.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ const common = require('../common');
44
if (!common.isWindows)
55
common.skip('Test for Windows only');
66

7+
const fixtures = require('../common/fixtures');
8+
79
const assert = require('assert');
810
const fs = require('fs');
911
const spawnSync = require('child_process').spawnSync;
@@ -16,7 +18,7 @@ let drive;
1618
let i;
1719
for (i = 0; i < driveLetters.length; ++i) {
1820
drive = `${driveLetters[i]}:`;
19-
result = spawnSync('subst', [drive, common.fixturesDir]);
21+
result = spawnSync('subst', [drive, fixtures.fixturesDir]);
2022
if (result.status === 0)
2123
break;
2224
}

0 commit comments

Comments
 (0)