Files
shields/services/bugzilla/bugzilla.spec.js
chris48s 13d75e0607 upgrade to prettier 2 (#5051)
* arrowParens: avoid
* remove trailingComma setting
2020-05-05 21:07:43 +01:00

17 lines
520 B
JavaScript

'use strict'
const { test, given } = require('sazerac')
const Bugzilla = require('./bugzilla.service')
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')
})
})
})