Skip to content

Commit

Permalink
fixup! windows paths
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Jun 4, 2021
1 parent b297e5b commit 9f7bf51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/lib/diff.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { resolve } = require('path')
const { resolve, join } = require('path')
const t = require('tap')
const mockNpm = require('../fixtures/mock-npm')

Expand Down Expand Up @@ -1177,8 +1177,8 @@ t.test('workspaces', t => {
if (err)
throw err
t.same(diffCalls, [
['workspace-a@latest', `file:${path}/workspace-a`],
['workspace-b@latest', `file:${path}/workspace-b`],
['workspace-a@latest', join(`file:${path}`, 'workspace-a')],
['workspace-b@latest', join(`file:${path}`, 'workspace-b')],
], 'should call libnpmdiff with workspaces params')
t.end()
})
Expand All @@ -1195,7 +1195,7 @@ t.test('workspaces', t => {
if (err)
throw err
t.same(diffCalls, [
['workspace-a@latest', `file:${path}/workspace-a`],
['workspace-a@latest', join(`file:${path}`, 'workspace-a')],
], 'should call libnpmdiff with workspaces params')
t.end()
})
Expand Down

0 comments on commit 9f7bf51

Please sign in to comment.