* migrate some services from examples to openApi * update freecodecamp test/example * improve and de-dupe service titles
16 lines
503 B
JavaScript
16 lines
503 B
JavaScript
import { createServiceTester } from '../tester.js'
|
|
import { isMetric } from '../test-validators.js'
|
|
export const t = await createServiceTester()
|
|
|
|
t.create('Total Points Valid')
|
|
.get('/raisedadead.json')
|
|
.expectBadge({ label: 'points', message: isMetric })
|
|
|
|
t.create('Total Points Private')
|
|
.get('/set.json')
|
|
.expectBadge({ label: 'points', message: 'private' })
|
|
|
|
t.create('Total Points Invalid')
|
|
.get('/invalid@username.json')
|
|
.expectBadge({ label: 'points', message: 'profile not found' })
|