From f4e135d07a1bd4050a8bd3aa35ebb6f8fcd72aa8 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Mon, 30 Sep 2024 12:48:16 +0200 Subject: [PATCH] test(Drawer): types --- test/components/Drawer.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/components/Drawer.spec.ts b/test/components/Drawer.spec.ts index b9a3f287..2bc615a8 100644 --- a/test/components/Drawer.spec.ts +++ b/test/components/Drawer.spec.ts @@ -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' } }],