Files
shields/services/github/github-stars.tester.js
Paul Melnikow 97358c1399 Rewrite [GitHubStars] (#3119)
* Refactor [GithubStars]

* Add test of link array
2019-02-28 18:18:32 -06:00

19 lines
387 B
JavaScript

'use strict'
const Joi = require('joi')
const t = (module.exports = require('../tester').createServiceTester())
t.create('Stars')
.get('/badges/shields.json')
.expectBadge({
label: 'stars',
message: Joi.string().regex(/^\w+$/),
})
t.create('Stars (repo not found)')
.get('/badges/helmets.json')
.expectBadge({
label: 'stars',
message: 'repo not found',
})