Skip to content

Commit

Permalink
fix(backend): fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
pYassine committed Nov 22, 2024
1 parent c3e53d3 commit dbe1c90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { readFile, writeFile } from "fs-extra";
import { join } from "path";

import { format } from "prettier";
import { domifaConfig } from "../../../../config";
import { usagerAppointmentCreatedEmailRenderer } from "./usagerAppointmentCreatedEmailRenderer.service";
import { domifaConfig } from "../../../../../config";
describe("usagerAppointmentCreatedEmailRenderer", () => {
it("usagerAppointmentCreatedEmailRenderer render ", async () => {
const { subject, text, html } =
Expand All @@ -15,7 +15,7 @@ describe("usagerAppointmentCreatedEmailRenderer", () => {
message: "Petit commentaire concernant le RV.",
});
expect(subject).toEqual(
`[DOMIFA] Prise de rendez-vous entre le demandeur et un collaborateur`
"[DOMIFA] Prise de rendez-vous entre le demandeur et un collaborateur"
);
expect(text).toContain("Paul");
expect(text).toContain("Smith");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { forwardRef } from "@nestjs/common";
import { InteractionsModule } from "../../../interactions/interactions.module";
import { AppLogsService } from "../../../app-logs/app-logs.service";
import { SmsModule } from "../../../../sms/sms.module";
import { StructuresModule } from "../../../../structures/structure.module";
import { UsagersModule } from "../../../../usagers/usagers.module";
import { UsersModule } from "../../../../users/users.module";
import { AppTestContext, AppTestHelper } from "../../../../util/test";
import { AdminStructuresService } from "../../services/admin-structures.service";
import { AdminStructuresController } from "./admin-structures.controller";
import { SmsModule } from "../../../sms/sms.module";

describe("Dashboard AdminStructuresController", () => {
let controller: AdminStructuresController;
Expand Down

0 comments on commit dbe1c90

Please sign in to comment.