Skip to content

Commit

Permalink
feat(review): add test
Browse files Browse the repository at this point in the history
  • Loading branch information
benprotheroe committed Sep 12, 2024
1 parent 0947dbd commit c955292
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ describe("PupilReview", () => {
it("logAttempt function is called when button is clicked", async () => {
(useFeatureFlagEnabled as jest.Mock).mockReturnValue(true);
//spy on the track function
const logAttemptSpy = jest.fn();
const logAttemptSpy = jest.fn(() => Promise.resolve("attempt-id"));
(useOakPupil as jest.Mock).mockReturnValue({ logAttempt: logAttemptSpy });

const { getByRole } = renderWithTheme(
Expand Down

0 comments on commit c955292

Please sign in to comment.