From c9b93339b006cdbdcb6cf86587fd34ae660c7486 Mon Sep 17 00:00:00 2001 From: jungmyunggi Date: Fri, 14 Feb 2025 00:30:55 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20=ED=85=8C=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=EC=97=90=EC=84=9C=20=ED=8F=AC=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=B9=B4=EB=93=9C=20=ED=83=80=EC=9E=85=EB=B3=80=EA=B2=BD?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EC=9D=B8=ED=95=B4=20=EB=B0=9C=EC=83=9D?= =?UTF-8?q?=ED=95=9C=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/__tests__/components/common/Card/PostCard.test.tsx | 3 +++ client/src/__tests__/mocks/data/posts.ts | 3 ++- client/src/components/common/Card/PostCardContent.tsx | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/__tests__/components/common/Card/PostCard.test.tsx b/client/src/__tests__/components/common/Card/PostCard.test.tsx index 8b7fd01..2058ef3 100644 --- a/client/src/__tests__/components/common/Card/PostCard.test.tsx +++ b/client/src/__tests__/components/common/Card/PostCard.test.tsx @@ -60,7 +60,10 @@ describe("PostCard", () => { viewCount: 100, path: "/test-post", author: "작성자", + thumbnail: "", blogPlatform: "etc", + tag: ["JavaScript", "React"], + summary: "# test", }; render(); diff --git a/client/src/__tests__/mocks/data/posts.ts b/client/src/__tests__/mocks/data/posts.ts index ca38190..1e3db60 100644 --- a/client/src/__tests__/mocks/data/posts.ts +++ b/client/src/__tests__/mocks/data/posts.ts @@ -7,9 +7,10 @@ export const createMockPost = (override = {}) => ({ author: "작성자", thumbnail: "test-thumbnail.jpg", authorImageUrl: "author-image.jpg", - tags: ["React", "Testing"], + tag: ["React", "Testing"], likes: 50, blogPlatform: "etc", + summary: "# test", ...override, }); diff --git a/client/src/components/common/Card/PostCardContent.tsx b/client/src/components/common/Card/PostCardContent.tsx index c112c39..df171a5 100644 --- a/client/src/components/common/Card/PostCardContent.tsx +++ b/client/src/components/common/Card/PostCardContent.tsx @@ -54,7 +54,7 @@ const DesktopCardContent = ({ post }: PostCardContentProps) => {

{post.title}

-

{formatDate(post.createdAt)}

+

{formatDate(post.createdAt)}

{post.tag && }