Skip to content

Commit

Permalink
fix build report test
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaitasaini committed Dec 2, 2024
1 parent ebdb503 commit 5c7503f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions services/app-api/handlers/reports/buildReport.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ReportType } from "../../types/reports";
import { ReportOptions, ReportType } from "../../types/reports";
import { User } from "../../types/types";
import { buildReport } from "./buildReport";

Expand All @@ -18,7 +18,10 @@ describe("Test create report handler", () => {
fullName: "James Holden",
email: "james.holden@test.com",
} as User;
const report = await buildReport(ReportType.QM, state, ["rulesOne"], user);
const reportOptions = {
name: "report1",
} as ReportOptions;
const report = await buildReport(ReportType.QM, state, reportOptions, user);

expect(report.state).toBe("PA");
expect(report.type).toBe(ReportType.QM);
Expand Down

0 comments on commit 5c7503f

Please sign in to comment.