Skip to content

Commit 7531554

Browse files
committed
chore: fix coverage for cli redirect tests
1 parent ea7e0e7 commit 7531554

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

cli/test/transform.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,22 @@ t.test('package-json files', async t => {
9393
'/files/package.json',
9494
])
9595
})
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+
})

0 commit comments

Comments
 (0)