mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
test(auth): give the login route tests the per-account bucket they now charge
This commit is contained in:
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", () => ({
|
||||
|
||||
Reference in new issue
Block a user