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

19 lines
666 B
JavaScript

import { isVPlusDottedVersionNClausesWithOptionalSuffixAndEpoch } from '../test-validators.js'
import { createServiceTester } from '../tester.js'
export const t = await createServiceTester()
t.create('Fedora package (default branch, valid)')
.get('/rpm.json')
.expectBadge({
label: 'fedora',
message: isVPlusDottedVersionNClausesWithOptionalSuffixAndEpoch,
})
t.create('Fedora package (not found)')
.get('/not-a-package/rawhide.json')
.expectBadge({ label: 'fedora', message: 'not found' })
t.create('Fedora package (branch not found)')
.get('/not-a-package/not-a-branch.json')
.expectBadge({ label: 'fedora', message: 'branch not found' })