Files
shields/services/github/github-watchers.tester.js
2021-04-05 17:20:51 +01:00

22 lines
526 B
JavaScript

'use strict'
const Joi = require('joi')
const t = (module.exports = require('../tester').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',
})