Skip to content

Commit 9f7bf51

Browse files
committed
fixup! windows paths
1 parent b297e5b commit 9f7bf51

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/lib/diff.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { resolve } = require('path')
1+
const { resolve, join } = require('path')
22
const t = require('tap')
33
const mockNpm = require('../fixtures/mock-npm')
44

@@ -1177,8 +1177,8 @@ t.test('workspaces', t => {
11771177
if (err)
11781178
throw err
11791179
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')],
11821182
], 'should call libnpmdiff with workspaces params')
11831183
t.end()
11841184
})
@@ -1195,7 +1195,7 @@ t.test('workspaces', t => {
11951195
if (err)
11961196
throw err
11971197
t.same(diffCalls, [
1198-
['workspace-a@latest', `file:${path}/workspace-a`],
1198+
['workspace-a@latest', join(`file:${path}`, 'workspace-a')],
11991199
], 'should call libnpmdiff with workspaces params')
12001200
t.end()
12011201
})

0 commit comments

Comments
 (0)