Split up [github] testers (#2560)
- Update github contributors badge for `create-service-tester`.
This commit is contained in:
23
services/github/github-forks.tester.js
Normal file
23
services/github/github-forks.tester.js
Normal file
@@ -0,0 +1,23 @@
|
||||
'use strict'
|
||||
|
||||
const Joi = require('joi')
|
||||
|
||||
const t = (module.exports = require('../create-service-tester')())
|
||||
|
||||
t.create('Forks')
|
||||
.get('/badges/shields.json')
|
||||
.expectJSONTypes(
|
||||
Joi.object().keys({
|
||||
name: 'forks',
|
||||
value: Joi.number()
|
||||
.integer()
|
||||
.positive(),
|
||||
})
|
||||
)
|
||||
|
||||
t.create('Forks (repo not found)')
|
||||
.get('/badges/helmets.json')
|
||||
.expectJSON({
|
||||
name: 'forks',
|
||||
value: 'repo not found',
|
||||
})
|
||||
Reference in New Issue
Block a user