Skip to content

Commit c9b9333

Browse files
committed
πŸ› fix: ν…ŒμŠ€νŠΈμ—μ„œ 포슀트 μΉ΄λ“œ νƒ€μž…λ³€κ²½μœΌλ‘œ 인해 λ°œμƒν•œ 버그 μˆ˜μ •
1 parent b22ddcc commit c9b9333

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

β€Žclient/src/__tests__/components/common/Card/PostCard.test.tsxβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ describe("PostCard", () => {
6060
viewCount: 100,
6161
path: "/test-post",
6262
author: "μž‘μ„±μž",
63+
thumbnail: "",
6364
blogPlatform: "etc",
65+
tag: ["JavaScript", "React"],
66+
summary: "# test",
6467
};
6568

6669
render(<PostCard post={minimalPost} />);

β€Žclient/src/__tests__/mocks/data/posts.tsβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ export const createMockPost = (override = {}) => ({
77
author: "μž‘μ„±μž",
88
thumbnail: "test-thumbnail.jpg",
99
authorImageUrl: "author-image.jpg",
10-
tags: ["React", "Testing"],
10+
tag: ["React", "Testing"],
1111
likes: 50,
1212
blogPlatform: "etc",
13+
summary: "# test",
1314
...override,
1415
});
1516

β€Žclient/src/components/common/Card/PostCardContent.tsxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const DesktopCardContent = ({ post }: PostCardContentProps) => {
5454
<p className="h-[40px] font-bold text-sm group-hover:text-primary transition-colors line-clamp-2">
5555
{post.title}
5656
</p>
57-
<p className="text-[10px] text-gray-400 pt-2">{formatDate(post.createdAt)}</p>
57+
<p className="text-[10px] text-gray-400 pt-2 pb-1">{formatDate(post.createdAt)}</p>
5858
{post.tag && <PostTag tags={post.tag} />}
5959
</div>
6060
</CardContent>

0 commit comments

Comments
Β (0)