Skip to content

Commit

Permalink
Fix unit test date - Artifacts table
Browse files Browse the repository at this point in the history
  • Loading branch information
jpuzz0 committed May 6, 2024
1 parent 8d6da65 commit c281ba9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('ArtifactsTable', () => {
],
],
state: 2,
createTimeSinceEpoch: 1711113121829,
createTimeSinceEpoch: new Date(),
})),
},
{
Expand All @@ -103,7 +103,7 @@ describe('ArtifactsTable', () => {
],
],
state: 2,
createTimeSinceEpoch: 1611399342384,
createTimeSinceEpoch: new Date(),
})),
},
] as unknown as Artifact[],
Expand Down Expand Up @@ -135,7 +135,7 @@ describe('ArtifactsTable', () => {
expect(firstRow).toHaveTextContent('1');
expect(firstRow).toHaveTextContent('system.Artifact');
expect(firstRow).toHaveTextContent('https://test-artifact!-aiplatform.googleapis.com/v1/12.15');
expect(firstRow).toHaveTextContent('1 month ago');
expect(firstRow).toHaveTextContent('Just now');

const secondRow = screen.getByRole('row', { name: /iris_dataset/ });
expect(secondRow).toHaveTextContent('iris_dataset');
Expand All @@ -144,6 +144,6 @@ describe('ArtifactsTable', () => {
expect(secondRow).toHaveTextContent(
'https://test2-artifact!-aiplatform.googleapis.com/v1/12.10',
);
expect(secondRow).toHaveTextContent('23 Jan 2021');
expect(secondRow).toHaveTextContent('Just now');
});
});

0 comments on commit c281ba9

Please sign in to comment.