Files
shields/services/github/github-watchers.tester.js
chris48s 8621fe42d7 Upgrade Joi (#3505)
* upgrade joi
* find & replace ALL THE THINGS
* update related deps
2019-06-02 21:59:55 +01:00

25 lines
539 B
JavaScript

'use strict'
const Joi = require('@hapi/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',
})