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

20 lines
566 B
JavaScript

'use strict'
const { test, given } = require('sazerac')
const Netlify = require('./netlify.service')
const building = { message: 'building', label: undefined, color: 'yellow' }
const notBuilt = { message: 'not built', label: undefined, color: undefined }
describe('Netlify', function () {
test(Netlify.render, () => {
given({ status: 'building' }).expect(building)
given({ status: 'stopped' }).expect(notBuilt)
given({ status: 'infrastructure_failure' }).expect({
message: 'failing',
color: 'red',
label: undefined,
})
})
})