test: réparation de la story du Drawer (plante)

pull/2889/head^2
Jalil Arfaoui 2024-02-07 01:05:11 +01:00 committed by Johan Girod
parent 84f5c6dbdc
commit 419f1c12ca
1 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,5 @@
import { Meta, StoryObj } from '@storybook/react'
import { MemoryRouter } from 'react-router-dom'
import { Drawer } from '@/design-system/drawer'
@ -7,6 +8,11 @@ import { DrawerButtonProps } from './Drawer'
const meta: Meta<typeof Drawer> = {
component: Drawer,
render: (args) => (
<MemoryRouter initialEntries={['/some/route']}>
<Drawer {...args}>{args.children}</Drawer>
</MemoryRouter>
),
argTypes: {
children: {
type: 'string',