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

13 lines
380 B
JavaScript

import { isMetric } from '../test-validators.js'
import { createServiceTester } from '../tester.js'
export const t = await createServiceTester()
t.create('Patrons (valid)').get('/Liberapay.json').expectBadge({
label: 'patrons',
message: isMetric,
})
t.create('Patrons (not found)')
.get('/does-not-exist.json')
.expectBadge({ label: 'liberapay', message: 'not found' })