Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

624 B
Raw Blame
import { expect, test, vi } from "vitest";

import { openApiDocument } from "../open-api";

vi.mock("@homarr/auth", () => ({}));

test("OpenAPI documentation should expose board automation endpoints", () => {
  const document = openApiDocument("https://homarr.dev");

  expect(document.info.version).toBe("1.1.0");
  expect(document.paths).toHaveProperty("/api/boards/{id}/settings");
  expect(document.paths).toHaveProperty("/api/boards/{id}/duplicate");
  expect(document.paths).toHaveProperty("/api/boards/{boardId}/items/{itemId}/layouts/{layoutId}");
  expect(document.paths).toHaveProperty("/api/settings/board");
});