Skip to content

Commit dcc3acc

Browse files
committed
UI
1 parent f1eff03 commit dcc3acc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

__tests__/Articles.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ const mockedArticles = [
66
{
77
id: "1",
88
title: "記事タイトル",
9-
date: "2024-08-01",
9+
updated_at: "2024-08-01",
1010
url: "https://example.com",
1111
thumbnail: "https://example.com/thumbnail.jpg",
1212
content: "記事の内容",
1313
},
1414
{
1515
id: "2",
1616
title: "記事タイトル2",
17-
date: "2024-08-02",
17+
updated_at: "2024-08-02",
1818
url: "https://example.com/2",
1919
thumbnail: "https://example.com/thumbnail2.jpg",
2020
content: "記事の内容2",
@@ -51,7 +51,7 @@ describe("Articles", () => {
5151
mockedArticles.forEach((article) => {
5252
expect(screen.getByText(article.title)).toBeInTheDocument();
5353
expect(
54-
screen.getByText(new Date(article.date).toLocaleDateString())
54+
screen.getByText(new Date(article.updated_at).toLocaleDateString())
5555
).toBeInTheDocument();
5656
expect(screen.getByAltText(article.title)).toHaveAttribute(
5757
"src",

0 commit comments

Comments
 (0)