vigour-doc-badges
Version:
Generates `.md` badges
21 lines (17 loc) • 655 B
JavaScript
var test = require('tape')
var badges = require('../')
var testCases = [
[{ standard: { style: 'shield' } }, '[](http://standardjs.com/)'],
[{ standard: { style: 'badge' } }, '[](http://standardjs.com/)']
]
var len = testCases.length
test('standard', function (t) {
t.plan(len)
for (let i = 0; i < len; i += 1) {
t.equals(badges(testCases[i][0]),
testCases[i][1],
'badges(' + JSON.stringify(testCases[i][0]) + ') === ' + testCases[i][1]
)
}
})