mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
19 lines
446 B
TypeScript
19 lines
446 B
TypeScript
import axios from "axios";
|
|
|
|
import JsonServer from "../../src/index";
|
|
import "./index.mock";
|
|
|
|
describe("deleteOne", () => {
|
|
it("correct response", async () => {
|
|
const { data } = await JsonServer(
|
|
"https://api.nestjsx-crud.refine.dev",
|
|
axios,
|
|
).deleteOne({
|
|
resource: "posts",
|
|
id: "99d8ae54-432c-48d4-a385-f0ff4665e448",
|
|
});
|
|
|
|
expect(data).toEqual("");
|
|
});
|
|
});
|