diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-05-15 17:45:41 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-05-15 19:06:42 +0200 |
| commit | c95cce04393080a52a54191cff7be8fec68af4b0 (patch) | |
| tree | 1022bc574c8fc8e657be922b26c1cf16cbfd9071 /src/components/organisms/forms/comment-form.test.tsx | |
| parent | 235fe67d770f83131c9ec10b99012319440db690 (diff) | |
chore: add Article pages
Diffstat (limited to 'src/components/organisms/forms/comment-form.test.tsx')
| -rw-r--r-- | src/components/organisms/forms/comment-form.test.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/organisms/forms/comment-form.test.tsx b/src/components/organisms/forms/comment-form.test.tsx index 0d387b5..c67ad6b 100644 --- a/src/components/organisms/forms/comment-form.test.tsx +++ b/src/components/organisms/forms/comment-form.test.tsx @@ -1,17 +1,20 @@ import { render, screen } from '@test-utils'; import CommentForm from './comment-form'; +const saveComment = async () => { + /** Do nothing. */ +}; const title = 'Cum voluptas voluptatibus'; describe('CommentForm', () => { it('renders a form', () => { - render(<CommentForm saveComment={() => null} />); + render(<CommentForm saveComment={saveComment} />); expect(screen.getByRole('form')).toBeInTheDocument(); }); it('renders an optional title', () => { render( - <CommentForm saveComment={() => null} title={title} titleLevel={2} /> + <CommentForm saveComment={saveComment} title={title} titleLevel={2} /> ); expect( screen.getByRole('heading', { level: 2, name: title }) |
