mirror of
https://github.com/feathericons/feather.git
synced 2023-08-10 21:13:24 +03:00
fix bux, update packages, wrote tests
This commit is contained in:
parent
4f3998c3ec
commit
26a09ed969
|
@ -20,9 +20,9 @@ function buildSpriteString(icons) {
|
|||
* @returns {string}
|
||||
*/
|
||||
function toSvgSymbol(name, contents) {
|
||||
return `<symbol id="${name}" viewBox="${DEFAULT_ATTRS.viewBox}">${
|
||||
contents
|
||||
}</symbol>`;
|
||||
return `<symbol id="${name}" viewBox="${
|
||||
DEFAULT_ATTRS.viewBox
|
||||
}">${contents}</symbol>`;
|
||||
}
|
||||
|
||||
export default buildSpriteString;
|
||||
|
|
|
@ -9,5 +9,5 @@
|
|||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M21 2H3v16h5v4l4-4h5l4-4V2zM11 11V7M16 11V7" />
|
||||
<path d="M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7" />
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 267 B After Width: | Height: | Size: 265 B |
|
@ -23,6 +23,8 @@
|
|||
}
|
||||
},
|
||||
"jest": {
|
||||
"verbose": true,
|
||||
"testURL": "http://localhost",
|
||||
"collectCoverageFrom": [
|
||||
"src/**/*.js"
|
||||
]
|
||||
|
@ -56,7 +58,7 @@
|
|||
"semantic-release": "^12.2.2",
|
||||
"svgo": "^0.7.2",
|
||||
"webpack": "^4.8.3",
|
||||
"webpack-cli": "^2.1.3"
|
||||
"webpack-cli": "^3.1.1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -18,9 +18,7 @@ function toSvg(name, attrs = {}) {
|
|||
|
||||
if (!icons[name]) {
|
||||
throw new Error(
|
||||
`No icon matching '${
|
||||
name
|
||||
}'. See the complete list of icons at https://feathericons.com`,
|
||||
`No icon matching '${name}'. See the complete list of icons at https://feathericons.com`,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user