Skip to content

Commit e7127a1

Browse files
committed
windows?
1 parent 65aa1f4 commit e7127a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/mock.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ test('readPkg', function (t) {
268268
cb(null, file);
269269
},
270270
readPkg: function (readFile, file, cb) {
271-
if (file.indexOf('bar/package.json') >= 0) {
271+
if (file.indexOf(path.join('bar', 'package.json')) >= 0) {
272272
cb(null, { main: './something-else.js' });
273273
} else {
274274
cb(null, JSON.parse(files[path.resolve(file)]));

test/mock_sync.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ test('readPkgSync', function (t) {
170170
return file;
171171
},
172172
readPkgSync: function (readFileSync, file) {
173-
if (file.indexOf('bar/package.json') >= 0) {
173+
if (file.indexOf(path.join('bar', 'package.json')) >= 0) {
174174
return { main: './something-else.js' };
175175
} else {
176176
return JSON.parse(files[path.resolve(file)]);

0 commit comments

Comments
 (0)