From 6b037924951c2f7b901088d1d9cb366c86b6597c Mon Sep 17 00:00:00 2001 From: Diego Rodrigues de Sa e Souza Date: Wed, 15 Jul 2026 07:04:53 -0300 Subject: [PATCH] test(providers): type the openrouter merge assertion callback (#6976) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new #6976 assertion added a 56th explicit `any` to this file, one over the 55 frozen in config/quality/eslint-suppressions.json, tripping the max-warnings-0 lint gate. Type the callback param instead of raising the frozen count — the debt ratchet only decreases. All 59 tests still pass. --- tests/unit/provider-models-route.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/provider-models-route.test.ts b/tests/unit/provider-models-route.test.ts index fc6cbb7d53..be36ef661a 100644 --- a/tests/unit/provider-models-route.test.ts +++ b/tests/unit/provider-models-route.test.ts @@ -576,7 +576,7 @@ test("provider models route prefers the remote OpenRouter /models API over stati // on dedicated endpoints), so the curated specialty catalog is folded into the // live-discovery response additively; static IMAGE models stay excluded // (hasChatRegistry is true for openrouter — see staticModels.ts). - const ids = body.models.map((m: any) => m.id); + const ids = body.models.map((m: { id: string }) => m.id); assert.ok(ids.includes("openai/gpt-4.1"), "live-fetched chat model is preserved"); assert.ok(ids.includes("baai/bge-m3"), "curated embedding is merged in"); assert.ok(ids.includes("cohere/rerank-v3.5"), "curated rerank is merged in");