Skip to content

Commit

Permalink
chore: update jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BCerki committed Sep 11, 2023
1 parent 3799a63 commit eb63e4f
Showing 1 changed file with 3 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -578,32 +578,15 @@ describe("The Project Funding Agreement Form Summary", () => {
return result;
},
});
componentTestingHelper.renderComponent();
componentTestingHelper.renderComponent(undefined, {
viewOnly: true,
});

expect(
screen.getByText(/budgets, expenses & payments not added/i)
).toBeInTheDocument();
});
it("Displays relevant message when funding agreement not updated", () => {
componentTestingHelper.loadQuery({
...mockQueryPayloadEP,
ProjectRevision() {
const result: Partial<ProjectFundingAgreementFormSummary_projectRevision$data> =
{
isFirstRevision: false,
summaryProjectFundingAgreementFormChanges: {
edges: [],
},
};
return result;
},
});
componentTestingHelper.renderComponent();

expect(
screen.getByText(/budgets, expenses & payments not updated/i)
).toBeInTheDocument();
});
it("Displays relevant message when funding agreement removed", () => {
componentTestingHelper.loadQuery({
...mockQueryPayloadEP,
Expand Down

0 comments on commit eb63e4f

Please sign in to comment.