Files
shields/services/bugzilla/bugzilla.spec.js
2021-07-09 12:53:55 +01:00

15 lines
499 B
JavaScript

import { test, given } from 'sazerac'
import Bugzilla from './bugzilla.service.js'
describe('getDisplayStatus function', function () {
it('formats status correctly', async function () {
test(Bugzilla.getDisplayStatus, () => {
given({ status: 'RESOLVED', resolution: 'WORKSFORME' }).expect(
'works for me'
)
given({ status: 'RESOLVED', resolution: 'WONTFIX' }).expect("won't fix")
given({ status: 'ASSIGNED', resolution: '' }).expect('assigned')
})
})
})