Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 315fba8

Browse filesBrowse files
Klemen KogovsekMylesBorins
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 4faf2ec commit 315fba8
Copy full SHA for 315fba8

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-fs-realpath-on-substed-drive.js
+3-1Lines changed: 3 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.