refactor: remove dead mockFailedFetch test helper (#2221)

The mockFailedFetch function in test-helpers.ts was never imported or
used by any test file. Removed to reduce dead code.

Co-authored-by: spawn-qa-bot <qa@openrouter.ai>
This commit is contained in:
A 2026-03-05 13:14:35 -08:00 committed by GitHub
parent 9f00c26ef7
commit 84ec491da0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -175,10 +175,6 @@ export function mockSuccessfulFetch(data: unknown) {
return mock(() => Promise.resolve(new Response(JSON.stringify(data))));
}
export function mockFailedFetch(error = "Network error") {
return mock(() => Promise.reject(new Error(error)));
}
// ── Test Environment Setup ─────────────────────────────────────────────────────
export interface TestEnvironment {