test(auth): give the login route tests the per-account bucket they now charge

This commit is contained in:
Marc-André Bombeck committed 2026-09-26 20:22:11 +02:00
1 parent ba70e19cf9
commit ece5b1d624
3 files changed
+4

No files matched your search

@@ -44,6 +44,8 @@ vi.mock("@/lib/rate-limit", () => ({
ip: "1.2.3.4",
}),
rateLimitHeaders: vi.fn(() => ({})),
checkRateLimit: vi.fn(async () => ({ allowed: true, remaining: 9 })),
refundRateLimit: vi.fn(async () => undefined),
}));
vi.mock("@/lib/db-compat", () => ({
@@ -48,6 +48,7 @@ vi.mock("@/lib/rate-limit", () => ({
ip: "203.0.113.1",
}),
rateLimitHeaders: vi.fn(() => ({})),
refundRateLimit: vi.fn(async () => undefined),
}));
vi.mock("@/lib/db-compat", () => ({
@@ -39,6 +39,7 @@ vi.mock("@/lib/rate-limit", () => ({
.fn()
.mockResolvedValue({ allowed: true, ip: "1.2.3.4" }),
rateLimitHeaders: vi.fn(() => ({})),
refundRateLimit: vi.fn(async () => undefined),
}));
vi.mock("@/lib/db-compat", () => ({