fix: open-api doc generation failing, post patch and delete not exported (#1565)

This commit is contained in:
Meier Lukas
2024-11-28 20:21:29 +01:00
committed by GitHub
parent 44e2105a8c
commit 2d7efc3ffa
4 changed files with 58 additions and 30 deletions

View File

@@ -0,0 +1,16 @@
import { expect, test, vi } from "vitest";
import { openApiDocument } from "../open-api";
vi.mock("@homarr/auth", () => ({}));
test("OpenAPI documentation should be generated", () => {
// Arrange
const base = "https://homarr.dev";
// Act
const act = () => openApiDocument(base);
// Assert
expect(act).not.toThrow();
});