Files
shields/services/github/github-labels.tester.js
2021-07-09 12:53:55 +01:00

14 lines
382 B
JavaScript

import { createServiceTester } from '../tester.js'
export const t = await 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',
})