test(Drawer): types

This commit is contained in:
Benjamin Canac
2024-09-30 12:48:16 +02:00
parent ef4a3a09c9
commit f4e135d07a

View File

@@ -9,9 +9,9 @@ describe('Drawer', () => {
// Props
['with title', { props: { ...props, title: 'Title' } }],
['with description', { props: { ...props, title: 'Title', description: 'Description' } }],
['with left direction', { props: { ...props, direction: 'left', title: 'Title', description: 'Description' } }],
['with top direction', { props: { ...props, direction: 'top', title: 'Title', description: 'Description' } }],
['with right direction', { props: { ...props, direction: 'right', title: 'Title', description: 'Description' } }],
['with left direction', { props: { ...props, direction: 'left' as const, title: 'Title', description: 'Description' } }],
['with top direction', { props: { ...props, direction: 'top' as const, title: 'Title', description: 'Description' } }],
['with right direction', { props: { ...props, direction: 'right' as const, title: 'Title', description: 'Description' } }],
['without handle', { props: { ...props, handle: false, title: 'Title', description: 'Description' } }],
['without overlay', { props: { ...props, overlay: false, title: 'Title', description: 'Description' } }],
['with class', { props: { ...props, class: 'bg-gray-50 dark:bg-gray-800' } }],