mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 23:05:42 +01:00
Fix: fix date pipe test for day after February
This commit is contained in:
parent
90a332a02c
commit
bc90ccc555
1 changed files with 3 additions and 1 deletions
|
|
@ -45,7 +45,9 @@ describe('CustomDatePipe', () => {
|
|||
if (now.getMonth() === 0) {
|
||||
notNow.setFullYear(now.getFullYear() - 1)
|
||||
}
|
||||
expect(datePipe.transform(notNow, 'relative')).toEqual('Last month')
|
||||
expect(['Last month', '4 weeks ago']).toContain(
|
||||
datePipe.transform(notNow, 'relative')
|
||||
)
|
||||
expect(datePipe.transform(now, 'relative')).toEqual('Just now')
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue