From 5c7503fb8e120cf762f377b53bab24fdb4e7bd47 Mon Sep 17 00:00:00 2001 From: Ajaita Saini Date: Mon, 2 Dec 2024 15:46:18 -0500 Subject: [PATCH] fix build report test --- services/app-api/handlers/reports/buildReport.test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/services/app-api/handlers/reports/buildReport.test.ts b/services/app-api/handlers/reports/buildReport.test.ts index ed77ccdd..f40b1288 100644 --- a/services/app-api/handlers/reports/buildReport.test.ts +++ b/services/app-api/handlers/reports/buildReport.test.ts @@ -1,4 +1,4 @@ -import { ReportType } from "../../types/reports"; +import { ReportOptions, ReportType } from "../../types/reports"; import { User } from "../../types/types"; import { buildReport } from "./buildReport"; @@ -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);