22 lines
477 B
JavaScript
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',
|
|
})
|