mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-12 23:35:50 +00:00
also fix backend month test
This commit is contained in:
parent
77bfa5b5ef
commit
f83b9a762c
@ -183,8 +183,10 @@ describe('util/creation', () => {
|
||||
})
|
||||
|
||||
it('has the clock set correctly', () => {
|
||||
const targetMonthString =
|
||||
(targetDate.getMonth() + 1 < 10 ? '0' : '') + String(targetDate.getMonth() + 1)
|
||||
expect(new Date().toISOString()).toContain(
|
||||
`${targetDate.getFullYear()}-${targetDate.getMonth() + 1}-${targetDate.getDate()}T23:`,
|
||||
`${targetDate.getFullYear()}-${targetMonthString}-${targetDate.getDate()}T23:`,
|
||||
)
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user