Files
shields/services/github/github-search.tester.js
chris48s d4faad1139 fix [github] service tests (#9425)
* bring GH downloads/release errors into line

* update GH lerna test example

* update GH package.json test example

* update GH pipenv test example

* update GH search test assertion
2023-08-07 14:37:03 +00:00

12 lines
441 B
JavaScript

import { isMetric } from '../test-validators.js'
import { createServiceTester } from '../tester.js'
export const t = await createServiceTester()
t.create('hit counter')
.get('/badges/shields/async%20handle.json')
.expectBadge({ label: 'async handle counter', message: isMetric })
t.create('hit counter for nonexistent repo')
.get('/badges/puppets/async%20handle.json')
.expectBadge({ label: 'async handle counter', message: '0' })