Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

307 B
Raw Blame
import fetchMock from "fetch-mock";

export function setupErrorSetupEndpoints() {
  fetchMock.post("path:/api/setup", 400);
}

export function setupForTokenCheckEndpoint(response: { valid: boolean }) {
  fetchMock.put(
    "path:/api/setting/premium-embedding-token",
    response.valid ? 204 : 400,
  );
}