Files
shields/services/github/github-watchers.tester.js
chris48s 13d75e0607 upgrade to prettier 2 (#5051)
* arrowParens: avoid
* remove trailingComma setting
2020-05-05 21:07:43 +01:00

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