2023-06-29 21:42:47 +02:00
|
|
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
2022-02-17 17:46:55 +01:00
|
|
|
|
2022-12-04 22:38:56 +01:00
|
|
|
exports[`Using lucide icon components > should add a class to the element 1`] = `
|
2022-02-17 17:46:55 +01:00
|
|
|
<svg
|
|
|
|
|
class="lucide-icon lucide lucide-smile my-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"
|
|
|
|
|
/>
|
2022-12-04 22:38:56 +01:00
|
|
|
|
2022-02-17 17:46:55 +01:00
|
|
|
<path
|
|
|
|
|
d="M8 14s1.5 2 4 2 4-2 4-2"
|
|
|
|
|
/>
|
2022-12-04 22:38:56 +01:00
|
|
|
|
2022-02-17 17:46:55 +01:00
|
|
|
<line
|
|
|
|
|
x1="9"
|
|
|
|
|
x2="9.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
/>
|
2022-12-04 22:38:56 +01:00
|
|
|
|
2022-02-17 17:46:55 +01:00
|
|
|
<line
|
|
|
|
|
x1="15"
|
|
|
|
|
x2="15.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
/>
|
2022-12-04 22:38:56 +01:00
|
|
|
|
|
|
|
|
|
2022-02-17 17:46:55 +01:00
|
|
|
</svg>
|
|
|
|
|
`;
|
|
|
|
|
|
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-17 17:46:55 +01:00
|
|
|
<body>
|
|
|
|
|
<div>
|
|
|
|
|
<svg
|
2024-04-26 17:59:04 +02:00
|
|
|
class="lucide-icon lucide lucide-smile"
|
2022-02-17 17:46:55 +01:00
|
|
|
fill="none"
|
|
|
|
|
height="48"
|
|
|
|
|
stroke="red"
|
|
|
|
|
stroke-linecap="round"
|
|
|
|
|
stroke-linejoin="round"
|
|
|
|
|
stroke-width="4"
|
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
|
width="48"
|
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
|
>
|
|
|
|
|
<circle
|
|
|
|
|
cx="12"
|
|
|
|
|
cy="12"
|
|
|
|
|
r="10"
|
|
|
|
|
/>
|
2022-12-04 22:38:56 +01:00
|
|
|
|
2022-02-17 17:46:55 +01:00
|
|
|
<path
|
|
|
|
|
d="M8 14s1.5 2 4 2 4-2 4-2"
|
|
|
|
|
/>
|
2022-12-04 22:38:56 +01:00
|
|
|
|
2022-02-17 17:46:55 +01:00
|
|
|
<line
|
|
|
|
|
x1="9"
|
|
|
|
|
x2="9.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
/>
|
2022-12-04 22:38:56 +01:00
|
|
|
|
2022-02-17 17:46:55 +01:00
|
|
|
<line
|
|
|
|
|
x1="15"
|
|
|
|
|
x2="15.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
/>
|
2022-12-04 22:38:56 +01:00
|
|
|
|
|
|
|
|
|
2022-02-17 17:46:55 +01:00
|
|
|
</svg>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
`;
|
|
|
|
|
|
2024-01-03 11:38:06 +01:00
|
|
|
exports[`Using lucide icon components > should not scale the strokeWidth when absoluteStrokeWidth is set 1`] = `
|
|
|
|
|
<div>
|
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
|
|
|
width="48"
|
|
|
|
|
height="48"
|
|
|
|
|
viewbox="0 0 24 24"
|
|
|
|
|
fill="none"
|
|
|
|
|
stroke="red"
|
|
|
|
|
stroke-width="1"
|
|
|
|
|
stroke-linecap="round"
|
|
|
|
|
stroke-linejoin="round"
|
|
|
|
|
data-testid="smile-icon"
|
2024-04-26 17:59:04 +02:00
|
|
|
class="lucide-icon lucide lucide-smile"
|
2024-01-03 11:38:06 +01:00
|
|
|
>
|
|
|
|
|
<circle cx="12"
|
|
|
|
|
cy="12"
|
|
|
|
|
r="10"
|
|
|
|
|
>
|
|
|
|
|
</circle>
|
|
|
|
|
<path d="M8 14s1.5 2 4 2 4-2 4-2">
|
|
|
|
|
</path>
|
|
|
|
|
<line x1="9"
|
|
|
|
|
x2="9.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
>
|
|
|
|
|
</line>
|
|
|
|
|
<line x1="15"
|
|
|
|
|
x2="15.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
>
|
|
|
|
|
</line>
|
|
|
|
|
</svg>
|
|
|
|
|
</div>
|
|
|
|
|
`;
|
2023-04-20 16:08:34 +02:00
|
|
|
|
2022-12-04 22:38:56 +01:00
|
|
|
exports[`Using lucide icon components > should render an component 1`] = `
|
2022-02-17 17:46:55 +01:00
|
|
|
<body>
|
|
|
|
|
<div>
|
|
|
|
|
<svg
|
2024-04-26 17:59:04 +02:00
|
|
|
class="lucide-icon lucide lucide-smile"
|
2022-02-17 17:46:55 +01: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"
|
|
|
|
|
/>
|
2022-12-04 22:38:56 +01:00
|
|
|
|
2022-02-17 17:46:55 +01:00
|
|
|
<path
|
|
|
|
|
d="M8 14s1.5 2 4 2 4-2 4-2"
|
|
|
|
|
/>
|
2022-12-04 22:38:56 +01:00
|
|
|
|
2022-02-17 17:46:55 +01:00
|
|
|
<line
|
|
|
|
|
x1="9"
|
|
|
|
|
x2="9.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
/>
|
2022-12-04 22:38:56 +01:00
|
|
|
|
2022-02-17 17:46:55 +01:00
|
|
|
<line
|
|
|
|
|
x1="15"
|
|
|
|
|
x2="15.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
/>
|
2022-12-04 22:38:56 +01:00
|
|
|
|
|
|
|
|
|
2022-02-17 17:46:55 +01:00
|
|
|
</svg>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
`;
|
|
|
|
|
|
2022-12-04 22:38:56 +01:00
|
|
|
exports[`Using lucide icon components > should render an icon slot 1`] = `
|
2022-02-17 17:46:55 +01:00
|
|
|
<body>
|
|
|
|
|
<div>
|
|
|
|
|
<svg
|
2024-04-26 17:59:04 +02:00
|
|
|
class="lucide-icon lucide lucide-smile"
|
2022-02-17 17:46:55 +01: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"
|
|
|
|
|
/>
|
2022-12-04 22:38:56 +01:00
|
|
|
|
2022-02-17 17:46:55 +01:00
|
|
|
<path
|
|
|
|
|
d="M8 14s1.5 2 4 2 4-2 4-2"
|
|
|
|
|
/>
|
2022-12-04 22:38:56 +01:00
|
|
|
|
2022-02-17 17:46:55 +01:00
|
|
|
<line
|
|
|
|
|
x1="9"
|
|
|
|
|
x2="9.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
/>
|
2022-12-04 22:38:56 +01:00
|
|
|
|
2022-02-17 17:46:55 +01:00
|
|
|
<line
|
|
|
|
|
x1="15"
|
|
|
|
|
x2="15.01"
|
|
|
|
|
y1="9"
|
|
|
|
|
y2="9"
|
|
|
|
|
/>
|
2022-12-04 22:38:56 +01:00
|
|
|
|
|
|
|
|
|
2022-02-17 17:46:55 +01:00
|
|
|
<text>
|
|
|
|
|
Test
|
|
|
|
|
</text>
|
|
|
|
|
</svg>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
`;
|