test/fixtures: Update timestamps of mock composes

The format of the timestamps of mock composes was causing an error in msw browser after merging https://github.com/RedHatInsights/image-builder-frontend/pull/1137

This updates the mock timestamps to the format of the actual ones fetched from the API.
This commit is contained in:
regexowl 2023-08-07 12:01:39 +02:00 committed by Lucas Garfield
parent 523fe3af8c
commit 5b516a5270
3 changed files with 23 additions and 23 deletions

View file

@ -102,7 +102,7 @@ describe('Images Table', () => {
// render the expected <ImageBuildStatus /> and compare the text content
if (
compose.created_at === '2021-04-27 12:31:12.794809 +0000 UTC' &&
compose.created_at === '2021-04-27T12:31:12Z' &&
compose.request.image_requests[0].upload_request.type === 'aws.s3'
) {
expect(row.cells[5]).toHaveTextContent('Expired');
@ -117,7 +117,7 @@ describe('Images Table', () => {
// render the expected <ImageLink /> and compare the text content for a link
if (
compose.created_at === '2021-04-27 12:31:12.794809 +0000 UTC' &&
compose.created_at === '2021-04-27T12:31:12Z' &&
compose.request.image_requests[0].upload_request.type === 'aws.s3'
) {
expect(row.cells[6]).toHaveTextContent('Recreate image');