Skip to content

Commit

Permalink
test: fix project form summary tests to use latest committed data
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevespi committed May 14, 2024
1 parent 9d28e91 commit 833cb9a
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions app/tests/unit/components/Form/ProjectFormSummary.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 833cb9a

Please sign in to comment.