mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Fix: fix date pipe test for day after February
This commit is contained in:
		@@ -45,7 +45,9 @@ describe('CustomDatePipe', () => {
 | 
				
			|||||||
    if (now.getMonth() === 0) {
 | 
					    if (now.getMonth() === 0) {
 | 
				
			||||||
      notNow.setFullYear(now.getFullYear() - 1)
 | 
					      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')
 | 
					    expect(datePipe.transform(now, 'relative')).toEqual('Just now')
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user