Files
shields/services/testspace/testspace-test-pass-ratio.spec.js
2021-07-09 12:53:55 +01:00

17 lines
403 B
JavaScript

import { test, given } from 'sazerac'
import TestspacePassRatio from './testspace-test-pass-ratio.service.js'
describe('TestspacePassRatio', function () {
test(TestspacePassRatio.render, () => {
given({ passed: 3, total: 5 }).expect({
message: '60%',
color: 'critical',
})
given({ passed: 4, total: 4 }).expect({
message: '100%',
color: 'success',
})
})
})