21
21
22
22
'use strict' ;
23
23
const common = require ( '../common' ) ;
24
+ const fixtures = require ( '../common/fixtures' ) ;
25
+
24
26
const assert = require ( 'assert' ) ;
25
27
const fs = require ( 'fs' ) ;
26
28
const path = require ( 'path' ) ;
@@ -133,7 +135,7 @@ function test_simple_absolute_symlink(callback) {
133
135
console . log ( 'using type=%s' , type ) ;
134
136
135
137
const entry = `${ tmpAbsDir } /symlink` ;
136
- const expected = ` ${ common . fixturesDir } / nested-index/ one` ;
138
+ const expected = fixtures . path ( ' nested-index' , ' one' ) ;
137
139
[
138
140
[ entry , expected ]
139
141
] . forEach ( function ( t ) {
@@ -156,7 +158,7 @@ function test_deep_relative_file_symlink(callback) {
156
158
return runNextTest ( ) ;
157
159
}
158
160
159
- const expected = path . join ( common . fixturesDir , 'cycles' , 'root.js' ) ;
161
+ const expected = fixtures . path ( 'cycles' , 'root.js' ) ;
160
162
const linkData1 = path
161
163
. relative ( path . join ( targetsAbsDir , 'nested-index' , 'one' ) ,
162
164
expected ) ;
@@ -185,7 +187,7 @@ function test_deep_relative_dir_symlink(callback) {
185
187
common . printSkipMessage ( 'symlink test (no privs)' ) ;
186
188
return runNextTest ( ) ;
187
189
}
188
- const expected = path . join ( common . fixturesDir , 'cycles' , 'folder' ) ;
190
+ const expected = fixtures . path ( 'cycles' , 'folder' ) ;
189
191
const path1b = path . join ( targetsAbsDir , 'nested-index' , 'one' ) ;
190
192
const linkPath1b = path . join ( path1b , 'symlink1-dir' ) ;
191
193
const linkData1b = path . relative ( path1b , expected ) ;
0 commit comments