We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e06f7a commit 204d5fdCopy full SHA for 204d5fd
packages/openapi-react-query/test/index.test.tsx
@@ -628,7 +628,7 @@ describe("client", () => {
628
expect(error).toBeNull();
629
});
630
631
- it("should resolve error properly and have undefined data when mutationFn returns undefined", async () => {
+ it("should resolve data properly and have error as null when mutationFn returns undefined", async () => {
632
const fetchClient = createFetchClient<paths>({ baseUrl });
633
const client = createClient(fetchClient);
634
@@ -648,7 +648,7 @@ describe("client", () => {
648
649
const { data, error } = result.current;
650
651
- expect(error).toBeInstanceOf(Error);
+ expect(error).toBeNull();
652
expect(data).toBeUndefined();
653
654
0 commit comments