* 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
20 lines
450 B
JavaScript
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',
|
|
})
|
|
})
|
|
})
|