test(Modal): add test without close

This commit is contained in:
Benjamin Canac
2024-04-11 14:41:00 +02:00
parent 432256dc67
commit a8c1340fa7
2 changed files with 32 additions and 12 deletions

View File

@@ -10,6 +10,7 @@ describe('Modal', () => {
['with fullscreen', { props: { open: true, portal: false, fullscreen: true, title: 'Title', description: 'Description' } }],
['without overlay', { props: { open: true, portal: false, overlay: false, title: 'Title', description: 'Description' } }],
['without transition', { props: { open: true, portal: false, transition: false, title: 'Title', description: 'Description' } }],
['without close', { props: { open: true, portal: false, close: null, title: 'Title', description: 'Description' } }],
['with class', { props: { open: true, portal: false, class: 'bg-gray-50 dark:bg-gray-800' } }],
['with ui', { props: { open: true, portal: false, ui: { close: 'right-2' } } }],
['with default slot', { props: { open: true, portal: false }, slots: { default: () => 'Default slot' } }],