getSimpleIcon handles 'get' icon (#5730)
This commit is contained in:
@@ -6,6 +6,7 @@ const {
|
||||
prependPrefix,
|
||||
isDataUrl,
|
||||
prepareNamedLogo,
|
||||
getSimpleIcon,
|
||||
makeLogo,
|
||||
} = require('./logos')
|
||||
|
||||
@@ -98,6 +99,13 @@ describe('Logo helpers', function () {
|
||||
})
|
||||
})
|
||||
|
||||
test(getSimpleIcon, () => {
|
||||
// https://github.com/badges/shields/issues/4016
|
||||
given({ name: 'get' }).expect(undefined)
|
||||
// https://github.com/badges/shields/issues/4263
|
||||
given({ name: 'get', color: 'blue' }).expect(undefined)
|
||||
})
|
||||
|
||||
test(makeLogo, () => {
|
||||
forCases([
|
||||
given('npm', { logo: 'image/svg+xml;base64,PHN2ZyB4bWxu' }),
|
||||
|
||||
Reference in New Issue
Block a user