mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
22 lines
528 B
TypeScript
22 lines
528 B
TypeScript
import dataProvider from "../../src/index";
|
|
import "./index.mock";
|
|
|
|
describe("update", () => {
|
|
it("correct response", async () => {
|
|
const response = await dataProvider(
|
|
"keywoytODSr6xAqfg",
|
|
"appKYl1H4k9g73sBT",
|
|
).update({
|
|
resource: "posts",
|
|
id: "recLKRioqifTrPUIz",
|
|
variables: {
|
|
title: "Hello World!!",
|
|
},
|
|
});
|
|
|
|
const { data } = response;
|
|
|
|
expect(data["title"]).toBe("Hello World!!");
|
|
});
|
|
});
|