File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments