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 3f19aeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/commands/view.js
Expand Up @@ -241,7 +241,7 @@ class View extends BaseCommand {
const er = new Error(`No match found for version ${version}`)
er.statusCode = 404
er.code = 'E404'
er.pkgid = pckmnt._id
er.pkgid = `${pckmnt._id}@${version}`
throw er
}

Expand Down
2 changes: 1 addition & 1 deletion 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 @@ -472,7 +473,6 @@ t.test('throws when version not matched', async t => {
)
})


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

0 comments on commit 3f19aeb

Please sign in to comment.