mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
fork refine
This commit is contained in:
21
packages/appwrite/test/custom/index.spec.ts
Normal file
21
packages/appwrite/test/custom/index.spec.ts
Normal 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.",
|
||||
);
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user