2023-08-07 22:20:14 +02:00
|
|
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
2021-05-20 21:24:54 +02:00
|
|
|
|
2022-12-04 22:38:56 +01:00
|
|
|
exports[`Using lucide icon components > should add a class to the element 1`] = `
|
2022-02-18 14:53:55 +01:00
|
|
|
<div>
|
|
|
|
|
<svg
|
2023-11-24 13:59:12 +01:00
|
|
|
class="lucide lucide-smile-icon my-icon"
|
2021-05-20 21:24:54 +02:00
|
|
|
fill="none"
|
|
|
|
|
height="24"
|
|
|
|
|
stroke="currentColor"
|
|
|
|
|
stroke-linecap="round"
|
|
|
|
|
stroke-linejoin="round"
|
|
|
|
|
stroke-width="2"
|
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
|
width="24"
|
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
|
>
|
|
|
|
|
<circle
|
|
|
|
|
cx="12"
|
|
|
|
|
cy="12"
|
|
|
|
|
r="10"
|
|
|
|
|
/>
|
|
|
|
|
<path
|
|
|
|
|
d="M8 14s1.5 2 4 2 4-2 4-2"
|
|
|
|
|
/>
|
|
|
|
|
<line
|
|
|
|
|
x1="9"
|
|
|
|
|
x2="9.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
/>
|
|
|
|
|
<line
|
|
|
|
|
x1="15"
|
|
|
|
|
x2="15.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
/>
|
2022-02-18 14:53:55 +01:00
|
|
|
</svg>
|
|
|
|
|
</div>
|
2021-05-20 21:24:54 +02:00
|
|
|
`;
|
|
|
|
|
|
2022-12-04 22:38:56 +01:00
|
|
|
exports[`Using lucide icon components > should add a style attribute to the element 1`] = `
|
2022-02-18 14:53:55 +01:00
|
|
|
<div>
|
|
|
|
|
<svg
|
2021-09-17 16:23:17 +02:00
|
|
|
class="lucide lucide-smile-icon"
|
2021-05-20 21:24:54 +02:00
|
|
|
fill="none"
|
|
|
|
|
height="24"
|
|
|
|
|
stroke="currentColor"
|
|
|
|
|
stroke-linecap="round"
|
|
|
|
|
stroke-linejoin="round"
|
|
|
|
|
stroke-width="2"
|
|
|
|
|
style="position: absolute;"
|
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
|
width="24"
|
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
|
>
|
|
|
|
|
<circle
|
|
|
|
|
cx="12"
|
|
|
|
|
cy="12"
|
|
|
|
|
r="10"
|
|
|
|
|
/>
|
|
|
|
|
<path
|
|
|
|
|
d="M8 14s1.5 2 4 2 4-2 4-2"
|
|
|
|
|
/>
|
|
|
|
|
<line
|
|
|
|
|
x1="9"
|
|
|
|
|
x2="9.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
/>
|
|
|
|
|
<line
|
|
|
|
|
x1="15"
|
|
|
|
|
x2="15.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
/>
|
2022-02-18 14:53:55 +01:00
|
|
|
</svg>
|
|
|
|
|
</div>
|
2021-05-20 21:24:54 +02:00
|
|
|
`;
|
|
|
|
|
|
2022-12-04 22:38:56 +01:00
|
|
|
exports[`Using lucide icon components > should adjust the size, stroke color and stroke width 1`] = `
|
2022-02-18 14:53:55 +01:00
|
|
|
<div>
|
|
|
|
|
<svg
|
2021-09-17 16:23:17 +02:00
|
|
|
class="lucide lucide-smile-icon"
|
2021-05-20 21:24:54 +02:00
|
|
|
fill="none"
|
|
|
|
|
height="48"
|
|
|
|
|
stroke="red"
|
|
|
|
|
stroke-linecap="round"
|
|
|
|
|
stroke-linejoin="round"
|
2022-02-18 14:53:55 +01:00
|
|
|
stroke-width="4"
|
2021-05-20 21:24:54 +02:00
|
|
|
viewBox="0 0 24 24"
|
|
|
|
|
width="48"
|
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
|
>
|
|
|
|
|
<circle
|
|
|
|
|
cx="12"
|
|
|
|
|
cy="12"
|
|
|
|
|
r="10"
|
|
|
|
|
/>
|
|
|
|
|
<path
|
|
|
|
|
d="M8 14s1.5 2 4 2 4-2 4-2"
|
|
|
|
|
/>
|
|
|
|
|
<line
|
|
|
|
|
x1="9"
|
|
|
|
|
x2="9.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
/>
|
|
|
|
|
<line
|
|
|
|
|
x1="15"
|
|
|
|
|
x2="15.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
/>
|
2022-02-18 14:53:55 +01:00
|
|
|
</svg>
|
|
|
|
|
</div>
|
|
|
|
|
`;
|
|
|
|
|
|
2022-12-04 22:38:56 +01:00
|
|
|
exports[`Using lucide icon components > should pass children to the icon slot 1`] = `
|
2022-02-18 14:53:55 +01:00
|
|
|
<div>
|
|
|
|
|
<svg
|
|
|
|
|
class="lucide lucide-smile-icon"
|
|
|
|
|
fill="none"
|
|
|
|
|
height="24"
|
|
|
|
|
stroke="currentColor"
|
|
|
|
|
stroke-linecap="round"
|
|
|
|
|
stroke-linejoin="round"
|
|
|
|
|
stroke-width="2"
|
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
|
width="24"
|
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
|
>
|
|
|
|
|
<circle
|
|
|
|
|
cx="12"
|
|
|
|
|
cy="12"
|
|
|
|
|
r="10"
|
|
|
|
|
/>
|
|
|
|
|
<path
|
|
|
|
|
d="M8 14s1.5 2 4 2 4-2 4-2"
|
|
|
|
|
/>
|
|
|
|
|
<line
|
|
|
|
|
x1="9"
|
|
|
|
|
x2="9.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
/>
|
|
|
|
|
<line
|
|
|
|
|
x1="15"
|
|
|
|
|
x2="15.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<text>
|
|
|
|
|
Hello World
|
|
|
|
|
</text>
|
|
|
|
|
|
|
|
|
|
</svg>
|
|
|
|
|
</div>
|
2021-05-20 21:24:54 +02:00
|
|
|
`;
|
|
|
|
|
|
2022-12-04 22:38:56 +01:00
|
|
|
exports[`Using lucide icon components > should render an component 1`] = `
|
2022-02-18 14:53:55 +01:00
|
|
|
<div>
|
|
|
|
|
<svg
|
2021-09-17 16:23:17 +02:00
|
|
|
class="lucide lucide-smile-icon"
|
2021-05-20 21:24:54 +02:00
|
|
|
fill="none"
|
|
|
|
|
height="24"
|
|
|
|
|
stroke="currentColor"
|
|
|
|
|
stroke-linecap="round"
|
|
|
|
|
stroke-linejoin="round"
|
|
|
|
|
stroke-width="2"
|
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
|
width="24"
|
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
|
>
|
|
|
|
|
<circle
|
|
|
|
|
cx="12"
|
|
|
|
|
cy="12"
|
|
|
|
|
r="10"
|
|
|
|
|
/>
|
|
|
|
|
<path
|
|
|
|
|
d="M8 14s1.5 2 4 2 4-2 4-2"
|
|
|
|
|
/>
|
|
|
|
|
<line
|
|
|
|
|
x1="9"
|
|
|
|
|
x2="9.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
/>
|
|
|
|
|
<line
|
|
|
|
|
x1="15"
|
|
|
|
|
x2="15.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
/>
|
2022-02-18 14:53:55 +01:00
|
|
|
</svg>
|
|
|
|
|
</div>
|
2021-05-20 21:24:54 +02:00
|
|
|
`;
|