Skip to content

Commit

Permalink
chore: fix coverage for cli redirect tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Oct 12, 2023
1 parent f82419f commit fc25cd1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions cli/test/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
])
})

0 comments on commit fc25cd1

Please sign in to comment.