Skip to content

Commit

Permalink
test: minor adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
pbastia committed Jan 3, 2025
1 parent 85bbdcd commit f0ff8b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -64,7 +64,7 @@ describe("ComplianceSummaryPage", () => {
versionId,
needsVerification: false,
summaryFormData: complianceData,
taskListElements: tasklistData,
taskListElements: getComplianceSummaryTaskList(),
},
{},
);
Expand All @@ -91,7 +91,7 @@ describe("ComplianceSummaryPage", () => {
versionId,
needsVerification: true,
summaryFormData: complianceData,
taskListElements: tasklistData,
taskListElements: getComplianceSummaryTaskList(),
},
{},
);
Expand Down Expand Up @@ -121,7 +121,7 @@ describe("ComplianceSummaryPage", () => {
versionId,
needsVerification: true,
summaryFormData: complianceData,
taskListElements: tasklistData,
taskListElements: getComplianceSummaryTaskList(),
},
{},
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ describe("NonAttributableEmissionsForm Component", () => {
emissionCategories={emissionCategories}
gasTypeMap={{ 1: "CO2" }}
emissionCategoryMap={{ 1: "Direct" }}
taskListElements={[]}
/>,
);

Expand All @@ -69,6 +70,7 @@ describe("NonAttributableEmissionsForm Component", () => {
emissionCategories={emissionCategories}
gasTypeMap={{ 1: "CO2" }}
emissionCategoryMap={{ 1: "Direct" }}
taskListElements={[]}
/>,
);

Expand All @@ -88,6 +90,7 @@ describe("NonAttributableEmissionsForm Component", () => {
emissionCategories={emissionCategories}
gasTypeMap={{ 1: "CO2" }}
emissionCategoryMap={{ 1: "Direct" }}
taskListElements={[]}
/>,
);

Expand Down Expand Up @@ -118,6 +121,7 @@ describe("NonAttributableEmissionsForm Component", () => {
emissionCategories={emissionCategories}
gasTypeMap={{ 1: "CO2" }}
emissionCategoryMap={{ 1: "Direct" }}
taskListElements={[]}
/>,
);

Expand Down

0 comments on commit f0ff8b6

Please sign in to comment.