Handle very old date strings in correspondent list

This commit is contained in:
shamoon
2023-08-07 15:48:00 -07:00
parent 73e829b721
commit f677744014
4 changed files with 39 additions and 8 deletions

View File

@@ -668,7 +668,7 @@ describe('DocumentDetailComponent', () => {
const object = {
id: 22,
name: 'Correspondent22',
last_correspondence: new Date(),
last_correspondence: new Date().toISOString(),
} as PaperlessCorrespondent
const qfSpy = jest.spyOn(documentListViewService, 'quickFilter')
component.filterDocuments([object])