Files
shields/services/github/github-license.spec.js
2019-02-24 16:04:24 -05:00

13 lines
387 B
JavaScript

'use strict'
const { test, given } = require('sazerac')
const GithubLicense = require('./github-license.service')
test(GithubLicense.render, () => {
given({ license: undefined }).expect({ message: 'not specified' })
given({ license: 'NOASSERTION' }).expect({
message: 'not identifiable by github',
})
given({ license: 'MIT' }).expect({ message: 'MIT', color: 'green' })
})