mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
fix(api): 🐛 Fix incorrect test case
This commit is contained in:
parent
96d1805925
commit
6d4b4eb13b
6
app.ts
6
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();
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue