Skip to content

Commit 315fba8

Browse 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

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines 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+
constfixtures=require('../common/fixtures');
8+
79
constassert=require('assert');
810
constfs=require('fs');
911
constspawnSync=require('child_process').spawnSync;
@@ -16,7 +18,7 @@ let drive;
1618
leti;
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)