import { createServiceTester } from '../tester.js' import { isBuildStatus } from '../build-status.js' export const t = await createServiceTester() t.create('branch checks (branch)') .get('/badges/shields/master.json') .expectBadge({ label: 'checks', message: isBuildStatus, }) t.create('checks - nonexistent ref') .get('/badges/shields/this-ref-does-not-exist.json') .expectBadge({ label: 'checks', message: 'ref or repo not found', color: 'red', })