1
1
'use strict' ;
2
2
const common = require ( '../common' ) ;
3
+ const fixtures = require ( '../common/fixtures' ) ;
4
+
3
5
const assert = require ( 'assert' ) ;
4
6
const fs = require ( 'fs' ) ;
5
7
const path = require ( 'path' ) ;
@@ -111,7 +113,7 @@ function test_simple_absolute_symlink(callback) {
111
113
console . log ( 'using type=%s' , type ) ;
112
114
113
115
const entry = `${ tmpAbsDir } /symlink` ;
114
- const expected = ` ${ common . fixturesDir } / nested-index/ one` ;
116
+ const expected = fixtures . path ( ' nested-index' , ' one' ) ;
115
117
[
116
118
[ entry , expected ]
117
119
] . forEach ( function ( t ) {
@@ -134,7 +136,7 @@ function test_deep_relative_file_symlink(callback) {
134
136
return runNextTest ( ) ;
135
137
}
136
138
137
- const expected = path . join ( common . fixturesDir , 'cycles' , 'root.js' ) ;
139
+ const expected = fixtures . path ( 'cycles' , 'root.js' ) ;
138
140
const linkData1 = path
139
141
. relative ( path . join ( targetsAbsDir , 'nested-index' , 'one' ) ,
140
142
expected ) ;
@@ -163,7 +165,7 @@ function test_deep_relative_dir_symlink(callback) {
163
165
common . printSkipMessage ( 'symlink test (no privs)' ) ;
164
166
return runNextTest ( ) ;
165
167
}
166
- const expected = path . join ( common . fixturesDir , 'cycles' , 'folder' ) ;
168
+ const expected = fixtures . path ( 'cycles' , 'folder' ) ;
167
169
const path1b = path . join ( targetsAbsDir , 'nested-index' , 'one' ) ;
168
170
const linkPath1b = path . join ( path1b , 'symlink1-dir' ) ;
169
171
const linkData1b = path . relative ( path1b , expected ) ;
0 commit comments