show booking date in mails

This commit is contained in:
Thomas Ruoff
2020-11-07 00:38:29 +01:00
parent c223b05011
commit eeb8beba0a
3 changed files with 36 additions and 3 deletions

12
helpers/date.test.ts Normal file
View File

@@ -0,0 +1,12 @@
import { daysFormatFrontend } from './date'
test('daysFormatFrontend', () => {
expect(daysFormatFrontend([])).toEqual('')
expect(daysFormatFrontend(['2020-01-01'])).toEqual('01.01.2020')
expect(daysFormatFrontend(['2020-01-01', '2020-01-02'])).toEqual(
'01.01.2020-02.01.2020'
)
expect(
daysFormatFrontend(['2020-01-01', '2020-01-02', '2020-01-05'])
).toEqual('01.01.2020-05.01.2020')
})