Files
shields/services/codecov/codecov.spec.js
Caleb Cartwright 6e84e9b317 Refactor [Codecov] (#3074)
* feat: started refactoring codecov

* tests: removed erroneous test from draft PR

* chore: prettified for prettier

* feat: more codecov updates and tests

* feat: more codecov refactor updates

* feat: added codecov redirect content

* refactor: removed legacy codecov service file

* refactor(codecov): added redirect for legacy token route path

* docs(codecov): added documentation to examples for token info

* docs(codecov): updated vcs param in example patterns

* refactor(codecov): update redirect service date

Co-Authored-By: calebcartwright <calebcartwright@users.noreply.github.com>

* refactor(codecov): various updates based on PR feedback

* chore: added comment to codecov 401 test
2019-03-07 23:11:41 -06:00

20 lines
450 B
JavaScript

'use strict'
const { test, forCases, given } = require('sazerac')
const Codecov = require('./codecov.service')
describe('Codecov', function() {
test(Codecov.prototype.transform, () => {
forCases([given({ json: {} }), given({ json: { commit: {} } })]).expect({
coverage: 'unknown',
})
})
test(Codecov.render, () => {
given({ coverage: 'unknown' }).expect({
message: 'unknown',
color: 'lightgrey',
})
})
})