Set importedAt date test into the past

GitOrigin-RevId: 535bbd72a7b72298367aa4da2e98de5542c53f30
This commit is contained in:
Andrew Rumble 2024-10-15 09:51:38 +01:00 committed by Copybot
parent cc0ce638b7
commit ad5e818420

View file

@ -92,7 +92,7 @@ describe('<FileViewHeader/>', function () {
source_entity_path: '/source-entity-path.ext',
provider: 'project_file',
importer_id: USER_ID,
importedAt: new Date(2024, 9, 16, 1, 30).getTime(),
importedAt: new Date(2024, 8, 16, 1, 30).getTime(),
},
created: new Date(2021, 1, 17, 3, 24).toISOString(),
}
@ -101,7 +101,7 @@ describe('<FileViewHeader/>', function () {
renderWithEditorContext(<FileViewHeader file={fileShown} />)
screen.getByText('Imported from', { exact: false })
screen.getByText('Another project', { exact: false })
screen.getByText('/source-entity-path.ext, at 1:30 am Wed, 16th Oct 24', {
screen.getByText('/source-entity-path.ext, at 1:30 am Mon, 16th Sep 24', {
exact: false,
})
})