mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
17 lines
429 B
TypeScript
17 lines
429 B
TypeScript
import { dataProvider } from "../../src/index";
|
|
import { client } from "../appwriteClient";
|
|
import "./index.mock";
|
|
|
|
describe("deleteOne", () => {
|
|
it("correct response with meta", async () => {
|
|
const { data } = await dataProvider(client, {
|
|
databaseId: "default",
|
|
}).deleteOne({
|
|
resource: "blog_posts",
|
|
id: "669e49f2000da6a5f6a6",
|
|
});
|
|
|
|
expect(data.id).toEqual("669e49f2000da6a5f6a6");
|
|
});
|
|
});
|