From 3ff4c37a7a2c40340c17f9e6c1754444bce0f839 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Tue, 31 Oct 2023 16:00:45 +0100
Subject: refactor(components): rewrite Modal component

* add an optional close button
* add an icon prop
---
 src/components/atoms/modal/modal.test.tsx | 26 --------------------------
 1 file changed, 26 deletions(-)
 delete mode 100644 src/components/atoms/modal/modal.test.tsx

(limited to 'src/components/atoms/modal/modal.test.tsx')

diff --git a/src/components/atoms/modal/modal.test.tsx b/src/components/atoms/modal/modal.test.tsx
deleted file mode 100644
index dfa4a88..0000000
--- a/src/components/atoms/modal/modal.test.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import { describe, expect, it } from '@jest/globals';
-import { render, screen as rtlScreen } from '../../../../tests/utils';
-import { Heading } from '../heading';
-import { Modal } from './modal';
-
-const title = 'A custom title';
-const children =
-  'Labore ullam delectus sit modi quam dolores. Ratione id sint aliquid facilis ipsum. Unde necessitatibus provident minus.';
-
-describe('Modal', () => {
-  it('renders a title', () => {
-    const level = 2;
-
-    render(
-      <Modal heading={<Heading level={level}>{title}</Heading>}>
-        {children}
-      </Modal>
-    );
-    expect(rtlScreen.getByRole('heading', { level })).toHaveTextContent(title);
-  });
-
-  it('renders the modal body', () => {
-    render(<Modal>{children}</Modal>);
-    expect(rtlScreen.getByText(children)).toBeInTheDocument();
-  });
-});
-- 
cgit v1.2.3

