Files
shields/services/piwheels/piwheels-version.tester.js
chris48s 76a64a7896 Add [piwheels] version badge (#7656)
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2022-03-02 20:58:23 +00:00

14 lines
429 B
JavaScript

import { isVPlusDottedVersionNClauses } from '../test-validators.js'
import { createServiceTester } from '../tester.js'
export const t = await createServiceTester()
t.create('version (valid)').get('/flask.json').expectBadge({
label: 'piwheels',
message: isVPlusDottedVersionNClauses,
})
t.create('version (does not exist)').get('/doesn-not-exist.json').expectBadge({
label: 'piwheels',
message: 'package not found',
})