1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-31 07:44:22 +03:00

addClassesToSVGElement: add one more test (#1441)

This commit is contained in:
XhmikosR
2021-03-21 09:26:57 +02:00
committed by GitHub
parent 65c733a42a
commit f44612e7a2
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Should add classes when passed as a classNames Array
===
<svg xmlns="http://www.w3.org/2000/svg">
test
</svg>

Before

Width:  |  Height:  |  Size: 185 B

After

Width:  |  Height:  |  Size: 244 B

View File

@ -0,0 +1,17 @@
Should add class when passed as a className String
===
<svg xmlns="http://www.w3.org/2000/svg">
test
</svg>
@@@
<svg xmlns="http://www.w3.org/2000/svg" class="mySvg">
test
</svg>
@@@
{"className":"mySvg"}