Add tests for option {style: 'flat'}

pull/3/head
Amio 2018-07-15 17:25:25 +08:00
rodzic 9ddba96348
commit 4e4b7972b4
1 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

@ -12,3 +12,15 @@ tap.test('generate badge with { subject, status, color }', t => {
t.ok(typeof svg === 'string', 'successfully generated') t.ok(typeof svg === 'string', 'successfully generated')
t.end() 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()
})