Files
shields/services/github/github-watchers.tester.js
chris48s 504015c0ba migrate hapi/joi to joi (#5624)
* update joi + joi-extension-semver

* @hapi/joi --> joi

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-09-30 17:51:02 +00:00

21 lines
507 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(),
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',
})