Browse Source

style(auth): format code and fix test expectation

ding113 3 weeks ago
parent
commit
18f3b02fba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/unit/api/auth-login-route.test.ts

+ 1 - 1
tests/unit/api/auth-login-route.test.ts

@@ -298,7 +298,7 @@ describe("POST /api/auth/login", () => {
 
     expect(res.status).toBe(401);
     const json = await res.json();
-    expect(json).toEqual({ error: undefined });
+    expect(json).toEqual({ error: "Authentication failed" });
     expect(mockLogger.warn).toHaveBeenCalled();
     expect(mockLogger.error).toHaveBeenCalled();
   });