Files
shields/services/github/github-labels.tester.js
Patrick Faion 9c5ecc2c2d Add service for [GitHubLabels] (#3902)
* Add service for github labels

* Set better category

Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com>

* Add more restrictive schema for color property

Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com>

* Make error message more consistent
2019-08-24 17:01:32 -05:00

17 lines
384 B
JavaScript

'use strict'
const t = (module.exports = require('../tester').createServiceTester())
t.create('labels')
.get('/badges/shields/bug.json')
.expectBadge({
message: 'bug',
color: '#e11d21',
})
t.create('labels (repo or label not found)')
.get('/badges/shields/somenonexistentlabelthatwouldneverexist.json')
.expectBadge({
message: 'repo or label not found',
})