19 lines
666 B
JavaScript
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' })
|