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

16 lines
497 B
JavaScript

import { createServiceTester } from '../tester.js'
import { isMetric } from '../test-validators.js'
export const t = await createServiceTester()
t.create('all-contributors repo')
.get('/all-contributors/all-contributors.json')
.expectBadge({
label: 'all contributors',
message: isMetric,
})
t.create('shields repo (not found)').get('/badges/shields.json').expectBadge({
label: 'all contributors',
message: 'repo not found, branch not found, or .all-contributorsrc missing',
})