Merging this separately so the commit with the tooling change is readable. This is a follow-on to #1167 which turned prettier on.
27 lines
650 B
JavaScript
27 lines
650 B
JavaScript
'use strict'
|
|
|
|
const Joi = require('joi')
|
|
const ServiceTester = require('../service-tester')
|
|
const { isIntegerPercentage } = require('../test-validators')
|
|
|
|
const t = new ServiceTester({ id: 'codecov', title: 'Codecov.io' })
|
|
module.exports = t
|
|
|
|
t.create('gets coverage status')
|
|
.get('/c/github/codecov/example-python.json')
|
|
.expectJSONTypes(
|
|
Joi.object().keys({
|
|
name: 'coverage',
|
|
value: isIntegerPercentage,
|
|
})
|
|
)
|
|
|
|
t.create('gets coverate status for branch')
|
|
.get('/c/github/codecov/example-python/master.json')
|
|
.expectJSONTypes(
|
|
Joi.object().keys({
|
|
name: 'coverage',
|
|
value: isIntegerPercentage,
|
|
})
|
|
)
|