From 833cb9a24e0ff30c9a5f2d3543c0ba4a1f4aca44 Mon Sep 17 00:00:00 2001 From: Mike Vesprini Date: Tue, 14 May 2024 09:30:33 -0700 Subject: [PATCH] test: fix project form summary tests to use latest committed data --- .../Form/ProjectFormSummary.test.tsx | 60 +++++++++---------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/app/tests/unit/components/Form/ProjectFormSummary.test.tsx b/app/tests/unit/components/Form/ProjectFormSummary.test.tsx index ea5d2353f7..a263ecf181 100644 --- a/app/tests/unit/components/Form/ProjectFormSummary.test.tsx +++ b/app/tests/unit/components/Form/ProjectFormSummary.test.tsx @@ -51,41 +51,41 @@ const mockQueryPayload = { name: "Test Project Status Name", }, }, - latestCommittedProjectFormChanges: { - edges: [ - { - node: { - rank: 987654321, - 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", + }, + latestCommittedProjectFormChanges: { + edges: [ + { + node: { + rank: 987654321, + 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", }, - 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", + fundingStreamRfpByFundingStreamRfpId: { + year: 2020, + fundingStreamByFundingStreamId: { + description: "Test Funding Stream Description", }, }, + projectStatusByProjectStatusId: { + name: "Test Project Status Name", + }, }, }, - ], - }, + }, + ], }, }; return result;