From 9d28e919e9469e4901cd0373bdaa9403f991131f Mon Sep 17 00:00:00 2001 From: Mike Vesprini Date: Mon, 13 May 2024 15:55:40 -0700 Subject: [PATCH] test: update test data in project form summary test to be latest committed data --- .../Form/ProjectFormSummary.test.tsx | 58 ++++++++++--------- 1 file changed, 32 insertions(+), 26 deletions(-) diff --git a/app/tests/unit/components/Form/ProjectFormSummary.test.tsx b/app/tests/unit/components/Form/ProjectFormSummary.test.tsx index d52ebd3325..ea5d2353f7 100644 --- a/app/tests/unit/components/Form/ProjectFormSummary.test.tsx +++ b/app/tests/unit/components/Form/ProjectFormSummary.test.tsx @@ -51,34 +51,40 @@ const mockQueryPayload = { name: "Test Project Status Name", }, }, - formChangeByPreviousFormChangeId: { - 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", - }, - fundingStreamRfpByFundingStreamRfpId: { - year: 2020, - fundingStreamByFundingStreamId: { - description: "Test Funding Stream Description", + 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", + }, + fundingStreamRfpByFundingStreamRfpId: { + year: 2020, + fundingStreamByFundingStreamId: { + description: "Test Funding Stream Description", + }, + }, + projectStatusByProjectStatusId: { + name: "Test Project Status Name", + }, + }, }, }, - projectStatusByProjectStatusId: { - name: "Test Project Status Name", - }, - }, + ], }, }, };