* add PUB points badge * update PUB points badge * update PUB points badge Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
24 lines
559 B
JavaScript
24 lines
559 B
JavaScript
import Joi from 'joi'
|
|
import { createServiceTester } from '../tester.js'
|
|
|
|
export const t = await createServiceTester()
|
|
|
|
t.create('pub points (valid)')
|
|
.get('/analysis_options.json')
|
|
.expectBadge({
|
|
label: 'points',
|
|
message: Joi.string().regex(/^\d+\/130$/),
|
|
})
|
|
|
|
t.create('pub points (not found)').get('/analysisoptions.json').expectBadge({
|
|
label: 'points',
|
|
message: 'not found',
|
|
color: 'red',
|
|
})
|
|
|
|
t.create('pub points (invalid)').get('/analysis-options.json').expectBadge({
|
|
label: 'points',
|
|
message: 'invalid',
|
|
color: 'lightgrey',
|
|
})
|