Skip to content

Commit

Permalink
Add Hr snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Plesnik committed Apr 19, 2024
1 parent ac50edd commit 3079b02
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions blog/2024/04/tests/__snapshots__/Hr.test.tsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`Add class name to the component 1`] = `
<div
className="my-4 flex items-center gap-2 text-gray-700 dark:text-gray-300 test-class"
>
<hr
className="h-px flex-1 border-none bg-current"
/>
</div>
`;

exports[`Render separator with text at the end 1`] = `
<div
className="my-4 flex items-center gap-2 text-gray-700 dark:text-gray-300"
>
<span
className="text-xs font-medium order-last"
>
End of Section 2
</span>
<hr
className="h-px flex-1 border-none bg-current"
/>
</div>
`;

exports[`Render separator with text in the beginning 1`] = `
<div
className="my-4 flex items-center gap-2 text-gray-700 dark:text-gray-300"
>
<span
className="text-xs font-medium"
>
End of Section 1
</span>
<hr
className="h-px flex-1 border-none bg-current"
/>
</div>
`;

exports[`Render simple separator 1`] = `
<div
className="my-4 flex items-center gap-2 text-gray-700 dark:text-gray-300"
>
<hr
className="h-px flex-1 border-none bg-current"
/>
</div>
`;

0 comments on commit 3079b02

Please sign in to comment.