Skip to content

Commit

Permalink
fix: npmversion tagged service test
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright committed Nov 13, 2021
1 parent 32f049e commit 85f73c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions services/npm/npm-version.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ export default class NpmVersion extends NpmBase {
{
title: 'npm (tag)',
pattern: ':packageName/:tag',
namedParams: { packageName: 'npm', tag: 'next' },
namedParams: { packageName: 'npm', tag: 'next-8' },
staticPreview: this.render({ tag: 'latest', version: '6.3.0' }),
keywords,
},
{
title: 'npm (custom registry)',
pattern: ':packageName/:tag',
namedParams: { packageName: 'npm', tag: 'next' },
namedParams: { packageName: 'npm', tag: 'next-8' },
queryParams: { registry_uri: 'https://registry.npmjs.com' },
staticPreview: this.render({ tag: 'latest', version: '7.0.0' }),
keywords,
Expand Down
4 changes: 2 additions & 2 deletions services/npm/npm-version.tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ t.create('gets the package version of @cycle/core')
.expectBadge({ label: 'npm', message: isSemver })

t.create('gets a tagged package version of npm')
.get('/npm/next.json')
.expectBadge({ label: 'npm@next', message: isSemver })
.get('/npm/next-8.json')
.expectBadge({ label: 'npm@next-8', message: isSemver })

t.create('gets the correct tagged package version of npm')
.intercept(nock =>
Expand Down

0 comments on commit 85f73c4

Please sign in to comment.