mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
13 lines
348 B
TypeScript
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);
|
|
});
|
|
});
|
|
});
|