From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 11 Mar 2025 07:35:18 +0000 (-0700) Subject: Fix: one more february relative date fix X-Git-Tag: v2.15.0-beta.rc1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcd50d53596e92c258fc848db71e79801af3cbbc;p=thirdparty%2Fpaperless-ngx.git Fix: one more february relative date fix --- diff --git a/src-ui/src/app/pipes/custom-date.pipe.spec.ts b/src-ui/src/app/pipes/custom-date.pipe.spec.ts index c8a0e8749..ebe480f08 100644 --- a/src-ui/src/app/pipes/custom-date.pipe.spec.ts +++ b/src-ui/src/app/pipes/custom-date.pipe.spec.ts @@ -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')