From 64fc374a7cd7c268fad4cb375b700de82d212645 Mon Sep 17 00:00:00 2001 From: Mike Vesprini Date: Mon, 20 May 2024 15:23:54 -0700 Subject: [PATCH] chore: pre-commit run --- .../ProjectMilestoneReportFormSummary.tsx | 2 +- ...ProjectMilestoneReportFormSummary.test.tsx | 16 ++++----- .../CollapsibleFormWidget.test.tsx | 36 +++---------------- 3 files changed, 13 insertions(+), 41 deletions(-) diff --git a/app/components/Form/ProjectMilestoneReportFormSummary.tsx b/app/components/Form/ProjectMilestoneReportFormSummary.tsx index 563ce85a67..decfaa1ca5 100644 --- a/app/components/Form/ProjectMilestoneReportFormSummary.tsx +++ b/app/components/Form/ProjectMilestoneReportFormSummary.tsx @@ -281,7 +281,7 @@ const ProjectMilestoneReportFormSummary: React.FC = ({ latestCommittedMilestoneFormChanges?.edges, renderDiff, sortedMilestoneReports, - latestCommittedReportMap + latestCommittedReportMap, ]); const milestoneReportsNotUpdated = useMemo( diff --git a/app/tests/unit/components/Form/ProjectMilestoneReportFormSummary.test.tsx b/app/tests/unit/components/Form/ProjectMilestoneReportFormSummary.test.tsx index 7d5ca60ed6..60a96d8e7f 100644 --- a/app/tests/unit/components/Form/ProjectMilestoneReportFormSummary.test.tsx +++ b/app/tests/unit/components/Form/ProjectMilestoneReportFormSummary.test.tsx @@ -83,7 +83,7 @@ const mockQueryPayload = { reportingRequirementId: 1, hasExpenses: true, }, - } + }, }, { node: { @@ -94,10 +94,10 @@ const mockQueryPayload = { reportingRequirementIndex: 2, reportingRequirementId: 2, }, - } + }, }, - ] - } + ], + }, }; return result; }, @@ -285,10 +285,10 @@ describe("The Project Milestone Report Form Summary", () => { adjustedGrossAmount: 12, adjustedHoldbackAmount: 13, }, - } - } - ] - } + }, + }, + ], + }, }; return result; }, diff --git a/app/tests/unit/components/ProjectRevision/CollapsibleFormWidget.test.tsx b/app/tests/unit/components/ProjectRevision/CollapsibleFormWidget.test.tsx index 84f0bb6a2f..111aa8a6f0 100644 --- a/app/tests/unit/components/ProjectRevision/CollapsibleFormWidget.test.tsx +++ b/app/tests/unit/components/ProjectRevision/CollapsibleFormWidget.test.tsx @@ -50,34 +50,6 @@ const mockQueryPayload = { name: "Test Project Status Name", }, }, - // formChangeByPreviousFormChangeId: { - // newFormData: { - // proposalReference: "Test Proposal Reference PREVIOUS", - // operatorId: 1, - // fundingStreamRfpId: 1, - // projectStatusId: 1, - // summary: "Test Summary", - // projectName: "Test Project Name", - // totalFundingRequest: 100.0, - // score: 1, - // projectType: "test project type PREVIOUS", - // }, - // asProject: { - // operatorByOperatorId: { - // legalName: "Test Legal Name PREVIOUS", - // bcRegistryId: "Test BC Registry ID", - // }, - // fundingStreamRfpByFundingStreamRfpId: { - // year: 2020, - // fundingStreamByFundingStreamId: { - // description: "Test Funding Stream Description", - // }, - // }, - // projectStatusByProjectStatusId: { - // name: "Test Project Status Name", - // }, - // }, - // }, }, latestCommittedProjectFormChanges: { edges: [ @@ -109,10 +81,10 @@ const mockQueryPayload = { name: "Test Project Status Name", }, }, - } - } - ] - } + }, + }, + ], + }, }; }, };