Skip to content

Commit

Permalink
fixup! added test coverage for the bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Jun 16, 2022
1 parent 9ee8be7 commit d2ea406
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/lib/commands/view.js
Expand Up @@ -33,6 +33,7 @@ const packument = (nv, opts) => {
},
},
blue: {
_id: 'blue',
name: 'blue',
'dist-tags': {
latest: '1.0.0',
Expand Down Expand Up @@ -468,11 +469,10 @@ t.test('throws when version not matched', async t => {
const { npm } = await loadMockNpm(t)
await t.rejects(
npm.exec('view', ['blue@2.0.0']),
{ code: 'E404', pkgid: 'blue@2.0.0', message: 'No match found for version 2.0.0' }
{ code: 'E404', pkgid: 'blue', message: 'No match found for version 2.0.0' }
)
})


t.test('workspaces', async t => {
const prefixDir = {
'package.json': JSON.stringify({
Expand Down

0 comments on commit d2ea406

Please sign in to comment.