File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ test('readPkg', function (t) {
268
268
cb ( null , file ) ;
269
269
} ,
270
270
readPkg : function ( readFile , file , cb ) {
271
- if ( file . indexOf ( 'bar/ package.json' ) >= 0 ) {
271
+ if ( file . indexOf ( path . join ( 'bar' , ' package.json') ) >= 0 ) {
272
272
cb ( null , { main : './something-else.js' } ) ;
273
273
} else {
274
274
cb ( null , JSON . parse ( files [ path . resolve ( file ) ] ) ) ;
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ test('readPkgSync', function (t) {
170
170
return file ;
171
171
} ,
172
172
readPkgSync : function ( readFileSync , file ) {
173
- if ( file . indexOf ( 'bar/ package.json' ) >= 0 ) {
173
+ if ( file . indexOf ( path . join ( 'bar' , ' package.json') ) >= 0 ) {
174
174
return { main : './something-else.js' } ;
175
175
} else {
176
176
return JSON . parse ( files [ path . resolve ( file ) ] ) ;
You can’t perform that action at this time.
0 commit comments