Files
shields/services/bugzilla/bugzilla.spec.js
2019-02-17 22:55:31 -05:00

17 lines
518 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')
})
})
})