Files
shields/services/github/github-watchers.tester.js
2021-07-09 12:53:55 +01:00

21 lines
531 B
JavaScript

import Joi from 'joi'
import { createServiceTester } from '../tester.js'
export const t = await createServiceTester()
t.create('Watchers')
.get('/badges/shields.json')
.expectBadge({
label: 'watchers',
message: Joi.number().integer().positive(),
color: 'blue',
link: [
'https://github.com/badges/shields',
'https://github.com/badges/shields/watchers',
],
})
t.create('Watchers (repo not found)').get('/badges/helmets.json').expectBadge({
label: 'watchers',
message: 'repo not found',
})