From 404353ad4fc0ee443aa1e205f5f671fc31fac84f Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 8 May 2026 09:35:39 +0100 Subject: [PATCH] test: clarify opencode thinking level assertions --- extensions/opencode/index.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/extensions/opencode/index.test.ts b/extensions/opencode/index.test.ts index c3e1b5d0c21..1723a499122 100644 --- a/extensions/opencode/index.test.ts +++ b/extensions/opencode/index.test.ts @@ -70,9 +70,9 @@ describe("opencode provider plugin", () => { levels: expect.arrayContaining([{ id: "adaptive" }]), defaultLevel: "adaptive", }); - expect(opus46Profile?.levels.some((level) => level.id === "xhigh" || level.id === "max")).toBe( - false, - ); + const opus46LevelIds = opus46Profile?.levels.map((level) => level.id) ?? []; + expect(opus46LevelIds).not.toContain("xhigh"); + expect(opus46LevelIds).not.toContain("max"); const sonnet46Profile = resolveThinkingProfile({ provider: "opencode", modelId: "claude-sonnet-4-6", @@ -81,8 +81,8 @@ describe("opencode provider plugin", () => { levels: expect.arrayContaining([{ id: "adaptive" }]), defaultLevel: "adaptive", }); - expect( - sonnet46Profile?.levels.some((level) => level.id === "xhigh" || level.id === "max"), - ).toBe(false); + const sonnet46LevelIds = sonnet46Profile?.levels.map((level) => level.id) ?? []; + expect(sonnet46LevelIds).not.toContain("xhigh"); + expect(sonnet46LevelIds).not.toContain("max"); }); });