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

22 lines
477 B
JavaScript

import { isMetric } from '../test-validators.js'
import { ServiceTester } from '../tester.js'
export const t = new ServiceTester({
id: 'bountysource',
title: 'Bountysource',
})
t.create('bounties (valid)')
.get('/team/mozilla-core/activity.json')
.expectBadge({
label: 'bounties',
message: isMetric,
})
t.create('bounties (invalid team)')
.get('/team/not-a-real-team/activity.json')
.expectBadge({
label: 'bounties',
message: 'not found',
})