We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent affe145 commit 7ca6d5bCopy full SHA for 7ca6d5b
packages/openapi-react-query/test/index.test.tsx
@@ -815,10 +815,14 @@ describe("client", () => {
815
result.current.mutate({ body: { message: "Test", replied_at: 123456789 } });
816
817
await waitFor(() => expect(result.current.isSuccess).toBe(true));
818
- expect(onSuccessSpy).toHaveBeenCalledWith(
+ expect(onSuccessSpy).toHaveBeenNthCalledWith(
819
+ 1,
820
{ message: "Success" },
821
{ body: { message: "Test", replied_at: 123456789 } },
822
undefined,
823
+ expect.objectContaining({
824
+ mutationKey: ["put", "/comment"],
825
+ }),
826
);
827
expect(onErrorSpy).not.toHaveBeenCalled();
828
});
0 commit comments