test: consistent avatar urls

This commit is contained in:
Benjamin Canac
2024-10-17 16:33:50 +02:00
parent e137577a72
commit 716ed10068
18 changed files with 103 additions and 103 deletions

View File

@@ -8,11 +8,11 @@ describe('Avatar', () => {
it.each([
// Props
['with src', { props: { src: 'https://avatars.githubusercontent.com/u/739984?v=4' } }],
['with src', { props: { src: 'https://github.com/benjamincanac.png' } }],
['with alt', { props: { alt: 'Benjamin Canac' } }],
['with text', { props: { text: '+1' } }],
['with icon', { props: { icon: 'i-heroicons-photo' } }],
...sizes.map((size: string) => [`with size ${size}`, { props: { src: 'https://avatars.githubusercontent.com/u/739984?v=4', size } }]),
...sizes.map((size: string) => [`with size ${size}`, { props: { src: 'https://github.com/benjamincanac.png', size } }]),
['with class', { props: { class: 'bg-[var(--ui-bg)]' } }],
['with ui', { props: { ui: { fallback: 'font-bold' } } }]
])('renders %s correctly', async (nameOrHtml: string, options: { props?: AvatarProps }) => {