From ec6e53e4663bc2e9b1341013bad872f53f365f76 Mon Sep 17 00:00:00 2001 From: Rory Doak Date: Mon, 14 Oct 2024 14:52:00 +0100 Subject: [PATCH] refactor: change not.toHaveBeenCalledWith to not.toHaveBeenCalled --- .../src/@planx/components/NumberInput/Public.test.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/editor.planx.uk/src/@planx/components/NumberInput/Public.test.tsx b/editor.planx.uk/src/@planx/components/NumberInput/Public.test.tsx index 0d3d393f10..0d4bbbfe41 100644 --- a/editor.planx.uk/src/@planx/components/NumberInput/Public.test.tsx +++ b/editor.planx.uk/src/@planx/components/NumberInput/Public.test.tsx @@ -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 () => {