fork refine

This commit is contained in:
Stefan Pejcic
2024-02-05 10:23:04 +01:00
parent 3fffde9a8f
commit 8496a83edb
3634 changed files with 715528 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
import { dataProvider } from "../../src/index";
import { client } from "../appwriteClient";
describe("custom", () => {
it("throws error when called", async () => {
expect.assertions(2);
try {
await dataProvider(client).custom?.({
url: "test",
method: "get",
});
} catch (err) {
expect(err).toBeInstanceOf(Error);
expect(err).toHaveProperty(
"message",
"'custom' method is not implemented on refine-appwrite data provider.",
);
}
});
});