diff --git a/test/lib/commands/view.js b/test/lib/commands/view.js index c2010f9c78008..b8c2ae8b81c6c 100644 --- a/test/lib/commands/view.js +++ b/test/lib/commands/view.js @@ -33,6 +33,7 @@ const packument = (nv, opts) => { }, }, blue: { + _id: 'blue', name: 'blue', 'dist-tags': { latest: '1.0.0', @@ -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({