Files
shields/services/freecodecamp/freecodecamp-points.tester.js
chris48s 6047241891 migrate examples to openApi part 9; affects [bowerlicense conda freecodecamp galaxytoolshed jenkins-plugin npmtypedefinitions puppetforge] (#9465)
* migrate some services from examples to openApi

* update freecodecamp test/example

* improve and de-dupe service titles
2023-09-20 18:38:56 +00:00

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' })