Refactor [continuousphp] (#3134)

This commit is contained in:
Caleb Cartwright
2019-03-03 13:54:15 -06:00
committed by chris48s
parent 711c3044dc
commit c009f3cf51
3 changed files with 71 additions and 80 deletions

View File

@@ -0,0 +1,19 @@
'use strict'
const { test, given } = require('sazerac')
const ContinuousPhp = require('./continuousphp.service')
describe('ContinuousPhp', function() {
test(ContinuousPhp.render, () => {
given({ status: 'unstable' }).expect({
label: 'build',
message: 'unstable',
color: 'yellow',
})
given({ status: 'running' }).expect({
label: 'build',
message: 'running',
color: 'blue',
})
})
})