Skip to content

Commit

Permalink
test(npm): fix impacted tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBuchholz committed Apr 5, 2023
1 parent 3afb902 commit 0fc9fdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/browser.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ describe('src/browser', () => {
})
await probe(job)
expect(job.browserCapabilities.modules).toStrictEqual(['reserve', 'dependentModule'])
expect(job.browserModules.reserve).toStrictEqual(join(__dirname, '../node_modules/reserve'))
expect(job.browserModules.reserve).toStrictEqual('reserve')
expect(job.browserModules.dependentModule).toStrictEqual(join(npmGlobal, 'dependentModule'))
})

Expand Down
2 changes: 1 addition & 1 deletion src/npm.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('src/npm', () => {

it('detects already installed local package', async () => {
const path = await resolvePackage(job, 'reserve')
expect(path).toStrictEqual(join(__dirname, '../node_modules/reserve'))
expect(path).toStrictEqual('reserve')
expect(output.resolvedPackage).toHaveBeenCalledTimes(1)
expect(output.packageNotLatest).not.toHaveBeenCalled()
})
Expand Down

0 comments on commit 0fc9fdd

Please sign in to comment.