Skip to content

Commit

Permalink
refactor: change not.toHaveBeenCalledWith to not.toHaveBeenCalled
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Oct 14, 2024
1 parent b12694e commit ec6e53e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ test("a clear error is shown if decimal value added when onlyWholeNumbers is tog
await user.click(screen.getByTestId("continue-button"));

expect(screen.getByText("Enter a whole number")).toBeInTheDocument();
expect(handleSubmit).not.toHaveBeenCalledWith({
data: { fahrenheit: 10.06 },
});
expect(handleSubmit).not.toHaveBeenCalled();
});

test("allows only whole numbers to be submitted when toggled on by editor", async () => {
Expand Down

0 comments on commit ec6e53e

Please sign in to comment.