fix bux, update packages, wrote tests

This commit is contained in:
toir 2021-03-15 22:57:51 +05:00
parent 4f3998c3ec
commit 26a09ed969
4 changed files with 8 additions and 8 deletions

View File

@ -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;

View File

@ -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

View File

@ -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",

View File

@ -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`,
);
}