mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
19 lines
535 B
TypeScript
19 lines
535 B
TypeScript
import { dataProvider } from "../../src/index";
|
|
import { client } from "../appwriteClient";
|
|
|
|
describe("getApiUrl", () => {
|
|
it("throws error when called", async () => {
|
|
expect.assertions(2);
|
|
|
|
try {
|
|
await dataProvider(client).getApiUrl();
|
|
} catch (err) {
|
|
expect(err).toBeInstanceOf(Error);
|
|
expect(err).toHaveProperty(
|
|
"message",
|
|
"'getApiUrl' method is not implemented on refine-appwrite data provider.",
|
|
);
|
|
}
|
|
});
|
|
});
|