mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-19 16:39:50 +00:00
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:
parent
9f00c26ef7
commit
84ec491da0
1 changed files with 0 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue