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

18 lines
545 B
JavaScript

import { test, given } from 'sazerac'
import Netlify from './netlify.service.js'
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,
})
})
})