From d2ea406079457c756aded03e3097a3d75ee62e85 Mon Sep 17 00:00:00 2001 From: Gar Date: Thu, 16 Jun 2022 09:22:14 -0700 Subject: [PATCH] fixup! added test coverage for the bug fix --- test/lib/commands/view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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({