mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 00:54:45 +00:00
test: clarify opencode thinking level assertions
This commit is contained in:
parent
ea5116089c
commit
404353ad4f
1 changed files with 6 additions and 6 deletions
|
|
@ -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");
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue