Skip to content

Commit

Permalink
fix(common): fix common unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pYassine committed Jan 9, 2025
1 parent d66f3ad commit 14da8a2
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,12 @@ describe("Création des rendez-vous", () => {
expect(getRdvInfo(usager)).toEqual({
class: "warning",
content: "20 mars 2021 à 19:20",
display: true,
});

usager.etapeDemande = ETAPE_DOSSIER_COMPLET;
expect(getRdvInfo(usager)).toEqual({
class: "",
content: "",
display: false,
});
});

Expand All @@ -55,14 +53,12 @@ describe("Création des rendez-vous", () => {
expect(getRdvInfo(usager)).toEqual({
class: "danger",
content: "20 juillet 2020 à 19:20",
display: true,
});

usager.etapeDemande = ETAPE_DECISION;
expect(getRdvInfo(usager)).toEqual({
class: "",
content: "",
display: false,
});
});

Expand All @@ -72,28 +68,24 @@ describe("Création des rendez-vous", () => {
expect(getRdvInfo(usager)).toEqual({
class: "",
content: "",
display: false,
});

usager.rdv.dateRdv = null;
expect(getRdvInfo(usager)).toEqual({
class: "",
content: "",
display: false,
});

// eslint-disable-next-line @typescript-eslint/no-explicit-any
usager.rdv = null as any;
expect(getRdvInfo(usager)).toEqual({
class: "",
content: "",
display: false,
});

expect(getRdvInfo()).toEqual({
class: "",
content: "",
display: false,
});
});

Expand Down

0 comments on commit 14da8a2

Please sign in to comment.