fix(api): 🐛 Fix incorrect test case

This commit is contained in:
Jesse Wierzbinski 2024-09-24 17:03:27 +02:00
parent 96d1805925
commit 6d4b4eb13b
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

6
app.ts
View file

@ -1,5 +1,6 @@
import { join } from "node:path";
import { handleZodError } from "@/api";
import { configureLoggers } from "@/loggers";
import { sentry } from "@/sentry";
import { cors } from "@hono/hono/cors";
import { createMiddleware } from "@hono/hono/factory";
@ -7,8 +8,8 @@ import { prettyJSON } from "@hono/hono/pretty-json";
import { secureHeaders } from "@hono/hono/secure-headers";
import { swaggerUI } from "@hono/swagger-ui";
import { OpenAPIHono } from "@hono/zod-openapi";
/* import { prometheus } from "@hono/prometheus";
*/ import { getLogger } from "@logtape/logtape";
/* import { prometheus } from "@hono/prometheus"; */
import { getLogger } from "@logtape/logtape";
import chalk from "chalk";
import type { ValidationError } from "zod-validation-error";
import pkg from "~/package.json" with { type: "application/json" };
@ -21,7 +22,6 @@ import { ipBans } from "./middlewares/ip-bans";
import { logger } from "./middlewares/logger";
import { routes } from "./routes";
import type { ApiRouteExports, HonoEnv } from "./types/api";
import { configureLoggers } from "@/loggers";
export const appFactory = async () => {
await configureLoggers();

View file

@ -34,7 +34,7 @@ describe("/api/v1/sso", () => {
expect(response.status).toBe(404);
expect(await response.json()).toMatchObject({
error: "Issuer unknown not found",
error: "Issuer with ID unknown not found in instance's OpenID configuration",
});
});