mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 15:25:41 +01:00
Fix: one more february relative date fix
This commit is contained in:
parent
376823598e
commit
dcd50d5359
1 changed files with 2 additions and 1 deletions
|
|
@ -45,7 +45,8 @@ describe('CustomDatePipe', () => {
|
|||
if (now.getMonth() === 0) {
|
||||
notNow.setFullYear(now.getFullYear() - 1)
|
||||
}
|
||||
expect(['Last month', '4 weeks ago']).toContain(
|
||||
// weird options are for february...
|
||||
expect(['Last month', '4 weeks ago', '3 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