From f1bd9790b047041c15b08be4ebd2cebcd60b0341 Mon Sep 17 00:00:00 2001 From: "Yassine R." Date: Tue, 6 Aug 2024 19:14:13 +0300 Subject: [PATCH] fix(backend): fix unit test for interactions --- .talismanrc | 2 ++ .../db/dumps/domifa_test.postgres.custom.gz | Bin 100905 -> 101392 bytes .../interactionsCreator.service.spec.ts | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.talismanrc b/.talismanrc index 8502cb9cef..cca49dfdf1 100644 --- a/.talismanrc +++ b/.talismanrc @@ -63,6 +63,8 @@ fileignoreconfig: checksum: 6c8166fdecdf0d9ab56fb12390ca2ed5bd98c8ba91b6c6bc976cdf659dde9263 - filename: packages/frontend/src/app/modules/admin-portail-usagers/components/manage-temp-messages/manage-temp-messages.component.html checksum: f5bc2bd3820b5f982b8d3c36360ed20764e408b4f59d65f470e503e66d1b3282 +- filename: packages/frontend/src/app/modules/general/components/static-pages/cgu-responsable/cgu-responsable.component.html + checksum: 9d6cfdeb651d4b63c956af48b211189a2936bb4ad669b8f3171ce9b97ef3242b - filename: packages/frontend/src/app/modules/general/components/static-pages/landing-page-portail/landing-page-portail.component.html checksum: 8040e47846a6f36cbd66e06d7c92172f38fb854187dd61cdd08560ac7c1f3a81 - filename: packages/frontend/src/app/modules/manage-usagers/components/usager-filter/services/usagersSorter.service.ts diff --git a/_scripts/db/dumps/domifa_test.postgres.custom.gz b/_scripts/db/dumps/domifa_test.postgres.custom.gz index b9a4fe66955573e373e04f87bee4dcbaa4bb9739..b4730d1bc0aab1cbf90a49b94d00255c8044d490 100644 GIT binary patch delta 5733 zcmZ`-d0Z9M9_M!jge#!Pa)pamL}gKdnL9hVp^&)dF1Zt;q9BVXTE0L{MFKmO{Er~1>jB9ekrXc>f7Q+u|fj5a&b%+OF2>wd|Tu~Up)L_QvS z(T2ESblKywCSoMK&oj`ZJ+lI$=LF$;uWJ3B<8fuXSpAu2@d@9_Z8V&~;TV6b{w%V1 zXy88mSz@udQzY?DTuB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->qrjD@)haI3{*tc)Xd(peeRv3wLVN-_sG^iV(c-uSFgpr; z5+GdYmjHhGouvQ$2qOZ{tDCj%%(QEqXTQroopS6_y<;+8^z3Q4U+Bq46Ti&$F3=2M zFHH{pZ10vq|ML1c^$uG(rm}HZ#KU7>t^6XlZ*7c|>H3{bg^}0Y&pbVslYH}J$g_RR z&s{Y9BRV_dV#XoY4nSylhr*kh%R>t}NtI+|wQEPTNBIGlgV(!Szs-prx?H&0ly z^e+3(>}xw<@QQwwy~nR>Zfwb}+_H{ox9aNj-DjN^U!8>0a{F%zm|QkI;%Md)^XmTm zVv9@8*v!cHek>g98se2Pe{oQWcdz;_;aXwkmGyp`i`g~RhN^X%DTPa?4&V7*bwTl^ zRAZavBeOp4@#Zzn@#4S(-OJbHvKK%Pp~U6Bncx?tc-{-|^hX(ZdoNdfmA} z{j~6K{6}%ZxvV*rb2qHxW3x6)o^-3hZD;Dfs`kY*qT6)}e>y7XVB3e|yXuFZ+5TYR z!ld!19{$$j-L$j*i$AkqF{T=q4`VhtZYw(aw(#!>Bc5L9@{hy?-vgfY?!%N$2}tj}t|hq{F4T+a!MIz4($ zVbh1JIyc22R{wE`+*J5UK`5MjM z5+5eme8t@JYE8ISG^B6^iHqv?w{v+KF#7E1C8sakTfHOVD8Hw+;#y745treS;L$m7 zSDoMPSyEl^INupC=;;0*qMyb=&Cr7_15!^+<>tjc3A|W8Y@<$#9z|^$zdWL9fOpHR zCs*6%&3uvgWFr@{ar3UNe>Sz7ck^AFxYvs+2?*hqhX|z zaCa1WKG5RqaWF>4Fu;i3arM0y6axB(}0Spd(Wn;2F=juz-H k?pO$aI6zNvTOqh;p_jO~2x { // La date de dernier passage est mise à jour expect(new Date(resultat.usager.lastInteraction.dateInteraction)).toEqual( - interaction.dateInteraction + new Date(interaction.dateInteraction) ); // Suppression de l'interaction sortante @@ -332,7 +332,7 @@ describe("interactionsCreator", () => { }); it("Distribution d'un courrier avec procuration : la date de dernier passage ne doit PAS être mise à jour ", async () => { - const lastInteractionDateBefore = "2018-02-01T10:00:00.980Z"; + const lastInteractionDateBefore = new Date("2018-02-01T10:00:00.980Z"); usager.lastInteraction.dateInteraction = new Date( lastInteractionDateBefore );