From 6d4b4eb13b35766aa0da86774f9ef929f532eaf3 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Tue, 24 Sep 2024 17:03:27 +0200 Subject: [PATCH] fix(api): :bug: Fix incorrect test case --- app.ts | 6 +++--- plugins/openid/routes/sso/index.test.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app.ts b/app.ts index 8ef2c381..e74c6ffd 100644 --- a/app.ts +++ b/app.ts @@ -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(); diff --git a/plugins/openid/routes/sso/index.test.ts b/plugins/openid/routes/sso/index.test.ts index 3451478f..0215c6e6 100644 --- a/plugins/openid/routes/sso/index.test.ts +++ b/plugins/openid/routes/sso/index.test.ts @@ -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", }); });