Client - a user can request and download data export archive

This commit is contained in:
Sam
2023-03-01 21:16:25 +01:00
parent 073c677b92
commit 67d7fc13b5
16 changed files with 207 additions and 7 deletions

View File

@ -293,6 +293,22 @@ describe('formatDate (w/ default value)', () => {
})
})
describe('formatDate with_seconds', () => {
it('format date for "Europe/Paris" timezone and "dd/MM/yyyy" format and seconds', () => {
assert.deepEqual(
formatDate(
'Tue, 01 Nov 2022 00:00:00 GMT',
'Europe/Paris',
'yyyy-MM-dd',
true,
null,
true
),
'2022-11-01 01:00:00'
)
})
})
describe('getDateFormat', () => {
const testsParams = [
{