Skip to content

Commit e1d8ab3

Browse files
committed
Update: Allow test to pass on Windows
1 parent f622aca commit e1d8ab3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ var expect = require('expect');
44

55
var miss = require('mississippi');
66
var File = require('vinyl');
7+
var normalize = require('normalize-path');
78

89
var mapSources = require('../');
910

@@ -217,8 +218,9 @@ describe('mapSources', function() {
217218
expect(files.length).toEqual(1);
218219

219220
var file = files[0];
221+
var base = normalize(file.base);
220222

221-
expect(file.sourceMap.sources).toEqual([file.base + '/helloworld.js', file.base + '/helloworld2.js']);
223+
expect(file.sourceMap.sources).toEqual([base + '/helloworld.js', base + '/helloworld2.js']);
222224
}
223225

224226
pipe([

0 commit comments

Comments
 (0)