Compare commits
1 Commits
integratio
...
assert-log
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d9908df571 |
@@ -23,6 +23,10 @@ module.exports = function makeBadge({
|
|||||||
logoWidth,
|
logoWidth,
|
||||||
links = ['', ''],
|
links = ['', ''],
|
||||||
}) {
|
}) {
|
||||||
|
if (!logo && (logoPosition !== undefined || logoWidth !== undefined)) {
|
||||||
|
throw Error('`logoPosition` and `logoWidth` require `logo`')
|
||||||
|
}
|
||||||
|
|
||||||
// String coercion and whitespace removal.
|
// String coercion and whitespace removal.
|
||||||
label = `${label}`.trim()
|
label = `${label}`.trim()
|
||||||
message = `${message}`.trim()
|
message = `${message}`.trim()
|
||||||
|
|||||||
Reference in New Issue
Block a user