From 67a70c3529328d0c4376869cad878908bfd350e3 Mon Sep 17 00:00:00 2001
From: Harang <dbd02169@naver.com>
Date: Fri, 12 Jan 2024 01:06:52 +0900
Subject: [PATCH] =?UTF-8?q?test:=20atoms=EC=9D=98=20=EA=B3=B5=ED=86=B5=20?=
 =?UTF-8?q?=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8=20=ED=85=8C=EC=8A=A4?=
 =?UTF-8?q?=ED=8A=B8=20=EC=B6=94=EA=B0=80=20(#15)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../atoms/CounterCard/index.test.tsx          | 17 +++++++++++++++++
 .../atoms/EventStatusBadge/index.test.tsx     | 17 +++++++++++++++++
 .../atoms/SectionTitle/index.test.tsx         | 19 +++++++++++++++++++
 3 files changed, 53 insertions(+)
 create mode 100644 src/components/atoms/CounterCard/index.test.tsx
 create mode 100644 src/components/atoms/EventStatusBadge/index.test.tsx
 create mode 100644 src/components/atoms/SectionTitle/index.test.tsx

diff --git a/src/components/atoms/CounterCard/index.test.tsx b/src/components/atoms/CounterCard/index.test.tsx
new file mode 100644
index 00000000..a898d2ca
--- /dev/null
+++ b/src/components/atoms/CounterCard/index.test.tsx
@@ -0,0 +1,17 @@
+import { render } from '@testing-library/react';
+
+import CounterCard from '.';
+
+describe('CounterCard', () => {
+  const count = 10;
+
+  const renderCounterCard = () => render((
+    <CounterCard count={count} title="title" suffix="명" />
+  ));
+
+  it('count가 나타나야만 한다', () => {
+    const { container } = renderCounterCard();
+
+    expect(container).toHaveTextContent(`${count}`);
+  });
+});
diff --git a/src/components/atoms/EventStatusBadge/index.test.tsx b/src/components/atoms/EventStatusBadge/index.test.tsx
new file mode 100644
index 00000000..3b8a5134
--- /dev/null
+++ b/src/components/atoms/EventStatusBadge/index.test.tsx
@@ -0,0 +1,17 @@
+import { render } from '@testing-library/react';
+
+import EventStatusBadge from '.';
+
+describe('EventStatusBadge', () => {
+  const title = 'title';
+
+  const renderEventStatusBadge = () => render((
+    <EventStatusBadge text="title" type="success" />
+  ));
+
+  it('badge text가 보여야만한다', () => {
+    const { container } = renderEventStatusBadge();
+
+    expect(container).toHaveTextContent(title);
+  });
+});
diff --git a/src/components/atoms/SectionTitle/index.test.tsx b/src/components/atoms/SectionTitle/index.test.tsx
new file mode 100644
index 00000000..0a9f5b37
--- /dev/null
+++ b/src/components/atoms/SectionTitle/index.test.tsx
@@ -0,0 +1,19 @@
+import { render } from '@testing-library/react';
+
+import SectionTitle from '.';
+
+describe('SectionTitle', () => {
+  const title = 'title';
+
+  const renderSectionTitle = () => render((
+    <SectionTitle title="title">
+      <div>children</div>
+    </SectionTitle>
+  ));
+
+  it('section title이 보여야만한다', () => {
+    const { container } = renderSectionTitle();
+
+    expect(container).toHaveTextContent(title);
+  });
+});