chore: update tests to use new date formats (#2045)

## Description

Update the tests to use the new date formats form this PR
https://github.com/documenso/documenso/pull/2038.
This commit is contained in:
Catalin Pit
2025-09-25 09:55:31 +03:00
committed by GitHub
parent 8590502338
commit b9b3ddfb98
3 changed files with 13 additions and 13 deletions

View File

@ -504,7 +504,7 @@ test('[DOCUMENT_FLOW]: should be able to sign a document with custom date', asyn
},
});
const insertedDate = DateTime.fromFormat(field?.customText ?? '', 'yyyy-MM-dd hh:mm a');
const insertedDate = DateTime.fromFormat(field?.customText ?? '', 'yyyy-MM-dd HH:mm');
expect(Math.abs(insertedDate.diff(now).minutes)).toBeLessThanOrEqual(1);