diff --git a/bciers/apps/reporting/src/tests/components/complianceSummary/ComplianceSummaryPage.test.tsx b/bciers/apps/reporting/src/tests/components/complianceSummary/ComplianceSummaryPage.test.tsx index c03e650ec1..7e82af7f78 100644 --- a/bciers/apps/reporting/src/tests/components/complianceSummary/ComplianceSummaryPage.test.tsx +++ b/bciers/apps/reporting/src/tests/components/complianceSummary/ComplianceSummaryPage.test.tsx @@ -4,10 +4,10 @@ import ComplianceSummaryPage from "@reporting/src/app/components/complianceSumma import { actionHandler } from "@bciers/actions"; import { getRegistrationPurpose } from "@reporting/src/app/utils/getRegistrationPurpose"; import { getAttributableEmissions } from "@reporting/src/app/utils/getAttributableEmissions"; -import { tasklistData } from "@reporting/src/app/components/complianceSummary/TaskListElements"; import { RegistrationPurposes } from "@/registration/app/components/operations/registration/enums"; import { vi } from "vitest"; +import { getComplianceSummaryTaskList } from "@reporting/src/app/components/taskList/4_complianceSummary"; // ✨ Mocks vi.mock( @@ -64,7 +64,7 @@ describe("ComplianceSummaryPage", () => { versionId, needsVerification: false, summaryFormData: complianceData, - taskListElements: tasklistData, + taskListElements: getComplianceSummaryTaskList(), }, {}, ); @@ -91,7 +91,7 @@ describe("ComplianceSummaryPage", () => { versionId, needsVerification: true, summaryFormData: complianceData, - taskListElements: tasklistData, + taskListElements: getComplianceSummaryTaskList(), }, {}, ); @@ -121,7 +121,7 @@ describe("ComplianceSummaryPage", () => { versionId, needsVerification: true, summaryFormData: complianceData, - taskListElements: tasklistData, + taskListElements: getComplianceSummaryTaskList(), }, {}, ); diff --git a/bciers/apps/reporting/src/tests/components/reportInformation/NonAttributableEmissions.test.tsx b/bciers/apps/reporting/src/tests/components/reportInformation/NonAttributableEmissions.test.tsx index ed7596fc90..5b8c5f220d 100644 --- a/bciers/apps/reporting/src/tests/components/reportInformation/NonAttributableEmissions.test.tsx +++ b/bciers/apps/reporting/src/tests/components/reportInformation/NonAttributableEmissions.test.tsx @@ -48,6 +48,7 @@ describe("NonAttributableEmissionsForm Component", () => { emissionCategories={emissionCategories} gasTypeMap={{ 1: "CO2" }} emissionCategoryMap={{ 1: "Direct" }} + taskListElements={[]} />, ); @@ -69,6 +70,7 @@ describe("NonAttributableEmissionsForm Component", () => { emissionCategories={emissionCategories} gasTypeMap={{ 1: "CO2" }} emissionCategoryMap={{ 1: "Direct" }} + taskListElements={[]} />, ); @@ -88,6 +90,7 @@ describe("NonAttributableEmissionsForm Component", () => { emissionCategories={emissionCategories} gasTypeMap={{ 1: "CO2" }} emissionCategoryMap={{ 1: "Direct" }} + taskListElements={[]} />, ); @@ -118,6 +121,7 @@ describe("NonAttributableEmissionsForm Component", () => { emissionCategories={emissionCategories} gasTypeMap={{ 1: "CO2" }} emissionCategoryMap={{ 1: "Direct" }} + taskListElements={[]} />, );