Skip to content

Commit

Permalink
fix(backend): fix unit test for interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
pYassine committed Aug 6, 2024
1 parent 502c719 commit f1bd979
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file modified _scripts/db/dumps/domifa_test.postgres.custom.gz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ describe("interactionsCreator", () => {

// 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
Expand All @@ -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
);
Expand Down

0 comments on commit f1bd979

Please sign in to comment.