fix: npmversion tagged service test (#7269)

This commit is contained in:
Caleb Cartwright
2021-11-14 13:04:36 -06:00
committed by GitHub
parent 32f049e3ce
commit be013e175b
2 changed files with 4 additions and 4 deletions

View File

@@ -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,

View File

@@ -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 =>