kopia lustrzana https://github.com/badgen/badgen
Add tests for option {style: 'flat'}
rodzic
9ddba96348
commit
4e4b7972b4
|
@ -12,3 +12,15 @@ tap.test('generate badge with { subject, status, color }', t => {
|
|||
t.ok(typeof svg === 'string', 'successfully generated')
|
||||
t.end()
|
||||
})
|
||||
|
||||
tap.test('generate flat badge with { subject, status }', t => {
|
||||
const svg = badgen({ subject: 'npm', status: 'v1.0.0' }, { style: 'flat' })
|
||||
t.ok(typeof svg === 'string', 'successfully generated')
|
||||
t.end()
|
||||
})
|
||||
|
||||
tap.test('generate flat badge with { subject, status, color }', t => {
|
||||
const svg = badgen({ subject: 'npm', status: 'v1.0.0', color: 'ADF' }, { style: 'flat' })
|
||||
t.ok(typeof svg === 'string', 'successfully generated')
|
||||
t.end()
|
||||
})
|
||||
|
|
Ładowanie…
Reference in New Issue