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 1
- const { resolve } = require ( 'path' )
1
+ const { resolve, join } = require ( 'path' )
2
2
const t = require ( 'tap' )
3
3
const mockNpm = require ( '../fixtures/mock-npm' )
4
4
@@ -1177,8 +1177,8 @@ t.test('workspaces', t => {
1177
1177
if ( err )
1178
1178
throw err
1179
1179
t . same ( diffCalls , [
1180
- [ 'workspace-a@latest' , `file:${ path } / workspace-a` ] ,
1181
- [ 'workspace-b@latest' , `file:${ path } / workspace-b` ] ,
1180
+ [ 'workspace-a@latest' , join ( `file:${ path } ` , ' workspace-a' ) ] ,
1181
+ [ 'workspace-b@latest' , join ( `file:${ path } ` , ' workspace-b' ) ] ,
1182
1182
] , 'should call libnpmdiff with workspaces params' )
1183
1183
t . end ( )
1184
1184
} )
@@ -1195,7 +1195,7 @@ t.test('workspaces', t => {
1195
1195
if ( err )
1196
1196
throw err
1197
1197
t . same ( diffCalls , [
1198
- [ 'workspace-a@latest' , `file:${ path } / workspace-a` ] ,
1198
+ [ 'workspace-a@latest' , join ( `file:${ path } ` , ' workspace-a' ) ] ,
1199
1199
] , 'should call libnpmdiff with workspaces params' )
1200
1200
t . end ( )
1201
1201
} )
You can’t perform that action at this time.
0 commit comments