chore: fix coverage for cli redirect tests
Luke Karrys committed
Oct 12, 2023 at 10:19 UTC
7531554317bf73d7ac5bffc1fc76ffbd6cf1517d
1 file changed
+19
cli/test/transform.js
+19
@@ -93,3 +93,22 @@ t.test('package-json files', async t => {
93
'/files/package.json',
94
])
95
})
96
+
97
+t.test('registry signatures', async t => {
98
+ t.strictSame(transform({
99
+ id: 'v8',
100
+ path: 'about-pgp-signatures-for-packages-in-the-public-registry',
101
+ }).redirect_from, [
102
+ '/about-registry-signatures',
103
+ '/cli/about-pgp-signatures-for-packages-in-the-public-registry',
104
+ '/cli/v8/about-pgp-signatures-for-packages-in-the-public-registry',
105
+ ])
106
+ t.strictSame(transform({
107
+ id: 'v8',
108
+ path: 'verifying-the-pgp-signature-for-a-package-from-the-npm-public-registry',
109
+ }).redirect_from, [
110
+ '/cli/v8/verifying-the-pgp-signature-for-a-package-from-the-npm-public-registry',
111
+ '/cli/verifying-the-pgp-signature-for-a-package-from-the-npm-public-registry',
112
+ '/verifying-registry-signatures',
113
+ ])
114
+})