* 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
17 lines
384 B
JavaScript
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',
|
|
})
|