aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/forms/comment-form.test.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-09-22 19:34:01 +0200
committerArmand Philippot <git@armandphilippot.com>2023-10-24 12:23:48 +0200
commita6ff5eee45215effb3344cb5d631a27a7c0369aa (patch)
tree5051747acf72318b4fc5c18d603e3757fbefdfdb /src/components/organisms/forms/comment-form.test.tsx
parent651ea4fc992e77d2f36b3c68f8e7a70644246067 (diff)
refactor(components): rewrite form components
Diffstat (limited to 'src/components/organisms/forms/comment-form.test.tsx')
-rw-r--r--src/components/organisms/forms/comment-form.test.tsx23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/components/organisms/forms/comment-form.test.tsx b/src/components/organisms/forms/comment-form.test.tsx
deleted file mode 100644
index f11c449..0000000
--- a/src/components/organisms/forms/comment-form.test.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-import { render, screen } from '../../../../tests/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={saveComment} />);
- expect(screen.getByRole('form')).toBeInTheDocument();
- });
-
- it('renders an optional title', () => {
- render(
- <CommentForm saveComment={saveComment} title={title} titleLevel={2} />
- );
- expect(
- screen.getByRole('heading', { level: 2, name: title })
- ).toBeInTheDocument();
- });
-});