Skip to content

Commit

Permalink
Patch jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NatSquared committed Mar 11, 2024
1 parent d9bc58b commit 60cda11
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,7 @@ describe('Engagement form page tests', () => {
await waitFor(() => {
expect(screen.getByDisplayValue('Test Engagement')).toBeInTheDocument();
});
getEngagementMetadataMock.mockReturnValueOnce(
Promise.resolve({
...[engagementMetadata],
}),
);
getEngagementMetadataMock.mockReturnValueOnce(Promise.resolve([engagementMetadata]));
expect(screen.getByText('Add Survey')).toBeDisabled();
});

Expand Down

0 comments on commit 60cda11

Please sign in to comment.