Files
shields/services/github/github-followers.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

19 lines
398 B
JavaScript

'use strict'
const Joi = require('@hapi/joi')
const t = (module.exports = require('../tester').createServiceTester())
t.create('Followers')
.get('/webcaetano.json')
.expectBadge({
label: 'followers',
message: Joi.string().regex(/^\w+$/),
})
t.create('Followers (user not found)')
.get('/PyvesB2.json')
.expectBadge({
label: 'followers',
message: 'user not found',
})