File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ function execLoader(filename, callback) {
50
50
}
51
51
52
52
describe ( 'source-map-loader' , ( ) => {
53
- const fixturesPath = path . join ( __dirname , 'fixtures' ) ;
54
- const dataPath = path . join ( fixturesPath , 'data' ) ;
53
+ const fixturesPath = path . resolve ( __dirname , 'fixtures' ) ;
54
+ const dataPath = path . resolve ( fixturesPath , 'data' ) ;
55
55
56
56
it ( 'should leave normal files untouched' , ( done ) => {
57
57
execLoader (
@@ -271,10 +271,10 @@ describe('source-map-loader', () => {
271
271
} ) ;
272
272
273
273
it ( 'should support absolute sourceRoot paths in sourcemaps' , ( done ) => {
274
- const sourceRoot = path . join ( fixturesPath ) ;
274
+ const sourceRoot = fixturesPath ;
275
275
const javaScriptFilename = 'absolute-sourceRoot-source-map.js' ;
276
276
const sourceFilename = 'absolute-sourceRoot-source-map.txt' ;
277
- const rootRelativeSourcePath = path . join ( sourceRoot , sourceFilename ) ;
277
+ const rootRelativeSourcePath = path . posix . join ( sourceRoot , sourceFilename ) ;
278
278
const sourceMapPath = path . join (
279
279
sourceRoot ,
280
280
'absolute-sourceRoot-source-map.map'
You can’t perform that action at this time.
0 commit comments