* feat(services): galaxytoolshed, downloads badge * ci: support new circle PR url variable (#8135) * refactor(galaxytoolshed): rm unused code * refactor(galaxytoolshed): update schema Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
29 lines
712 B
JavaScript
29 lines
712 B
JavaScript
import { isMetric } from '../test-validators.js'
|
|
import { createServiceTester } from '../tester.js'
|
|
|
|
export const t = await createServiceTester()
|
|
|
|
t.create('downloads - raw').get('/sra_tools/iuc.json').expectBadge({
|
|
label: 'downloads',
|
|
message: isMetric,
|
|
})
|
|
|
|
t.create('downloads - repository not found')
|
|
.get('/sra_tool/iuc.json')
|
|
.expectBadge({
|
|
label: 'downloads',
|
|
message: 'not found',
|
|
})
|
|
|
|
t.create('downloads - owner not found').get('/sra_tools/iu.json').expectBadge({
|
|
label: 'downloads',
|
|
message: 'not found',
|
|
})
|
|
|
|
t.create('downloads - changesetRevision not found')
|
|
.get('/bioqc/badilla.json')
|
|
.expectBadge({
|
|
label: 'downloads',
|
|
message: 'changesetRevision not found',
|
|
})
|