Skip to content

Commit aac7e96

Browse files
fix: test
1 parent abd1b41 commit aac7e96

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/index.test.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ function execLoader(filename, callback) {
5050
}
5151

5252
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');
5555

5656
it('should leave normal files untouched', (done) => {
5757
execLoader(
@@ -271,7 +271,7 @@ describe('source-map-loader', () => {
271271
});
272272

273273
it('should support absolute sourceRoot paths in sourcemaps', (done) => {
274-
const sourceRoot = path.join(fixturesPath);
274+
const sourceRoot = fixturesPath;
275275
const javaScriptFilename = 'absolute-sourceRoot-source-map.js';
276276
const sourceFilename = 'absolute-sourceRoot-source-map.txt';
277277
const rootRelativeSourcePath = path.join(sourceRoot, sourceFilename);
@@ -288,6 +288,8 @@ describe('source-map-loader', () => {
288288
sources: [sourceFilename],
289289
mappings: 'AAAA',
290290
};
291+
console.log(rawSourceMap);
292+
console.log(rootRelativeSourcePath);
291293
fs.writeFileSync(sourceMapPath, JSON.stringify(rawSourceMap));
292294

293295
execLoader(

0 commit comments

Comments
 (0)