From fc25cd151fda9a757b35df59d11efc792a96aaa4 Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Thu, 12 Oct 2023 10:19:59 -0700 Subject: [PATCH] chore: fix coverage for cli redirect tests --- cli/test/transform.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/cli/test/transform.js b/cli/test/transform.js index 138a98a9126..0787d2ef13c 100644 --- a/cli/test/transform.js +++ b/cli/test/transform.js @@ -93,3 +93,22 @@ t.test('package-json files', async t => { '/files/package.json', ]) }) + +t.test('registry signatures', async t => { + t.strictSame(transform({ + id: 'v8', + path: 'about-pgp-signatures-for-packages-in-the-public-registry', + }).redirect_from, [ + '/about-registry-signatures', + '/cli/about-pgp-signatures-for-packages-in-the-public-registry', + '/cli/v8/about-pgp-signatures-for-packages-in-the-public-registry', + ]) + t.strictSame(transform({ + id: 'v8', + path: 'verifying-the-pgp-signature-for-a-package-from-the-npm-public-registry', + }).redirect_from, [ + '/cli/v8/verifying-the-pgp-signature-for-a-package-from-the-npm-public-registry', + '/cli/verifying-the-pgp-signature-for-a-package-from-the-npm-public-registry', + '/verifying-registry-signatures', + ]) +})