mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
22 lines
603 B
TypeScript
22 lines
603 B
TypeScript
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.",
|
|
);
|
|
}
|
|
});
|
|
});
|