diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-04-06 18:40:17 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-04-06 18:45:08 +0200 |
| commit | 47e12259d512e476326e83929efebf036b57f7c1 (patch) | |
| tree | ff175aa349caf2a3872f78a239d8f35d72affcc5 /src/components/molecules/layout/modal.test.tsx | |
| parent | dfd816d1891545aa8ead982b57891858f1c82bb4 (diff) | |
chore: add a Modal component
Diffstat (limited to 'src/components/molecules/layout/modal.test.tsx')
| -rw-r--r-- | src/components/molecules/layout/modal.test.tsx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/molecules/layout/modal.test.tsx b/src/components/molecules/layout/modal.test.tsx new file mode 100644 index 0000000..14fb224 --- /dev/null +++ b/src/components/molecules/layout/modal.test.tsx @@ -0,0 +1,9 @@ +import { render, screen } from '@test-utils'; +import Modal from './modal'; + +describe('Modal', () => { + it('renders a title', () => { + render(<Modal title="A custom title" />); + expect(screen.getByText('A custom title')).toBeInTheDocument(); + }); +}); |
