Skip to content

Commit

Permalink
test: update test data in project form summary test to be latest comm…
Browse files Browse the repository at this point in the history
…itted data
  • Loading branch information
mikevespi committed May 13, 2024
1 parent 65d7442 commit 9d28e91
Showing 1 changed file with 32 additions and 26 deletions.
58 changes: 32 additions & 26 deletions app/tests/unit/components/Form/ProjectFormSummary.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
],
},
},
};
Expand Down

0 comments on commit 9d28e91

Please sign in to comment.