openpanel/packages/nestjs-query/test/useApiUrl/index.spec.ts
Stefan Pejcic 09f9f9502d packages
2024-11-07 19:03:37 +01:00

13 lines
348 B
TypeScript

import dataProvider from "../../src/index";
import client, { API_URL } from "../gqlClient";
describe("getApiUrl", () => {
describe("should return API URL from client", () => {
it("correct response with getApiUrl", async () => {
const apiURL = dataProvider(client).getApiUrl();
expect(apiURL).toEqual(API_URL);
});
});
});