Files
shields/services/github/github-branch-count.tester.js

18 lines
432 B
JavaScript

import { isMetric } from '../test-validators.js'
import { createServiceTester } from '../tester.js'
export const t = await createServiceTester()
t.create('branch count').get('/badges/shields.json').expectBadge({
label: 'branches',
message: isMetric,
color: 'blue',
})
t.create('repo not found')
.get('/badges/shields-nonexistent-repo-xyz.json')
.expectBadge({
label: 'branches',
message: 'repo not found',
})