Skip to content

Commit baf3dfa

Browse files
authored
Update src/api/providers/fetchers/__tests__/opencode-go.spec.ts
1 parent 2548179 commit baf3dfa

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/api/providers/fetchers/__tests__/opencode-go.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ describe("Opencode Go Fetchers", () => {
8484
const models = await getOpencodeGoModels("k")
8585

8686
expect(Object.keys(models)).toEqual(["valid-model"])
87-
expect(warnSpy).toHaveBeenCalledTimes(1)
88-
expect(warnSpy.mock.calls[0][0]).toContain("Skipping invalid Opencode Go model entry")
87+
// Two warns: one for the outer schema mismatch, one for the invalid item
88+
expect(warnSpy).toHaveBeenCalledTimes(2)
89+
expect(warnSpy.mock.calls[0][0]).toContain("did not match expected schema")
90+
expect(warnSpy.mock.calls[1][0]).toContain("Skipping invalid Opencode Go model entry")
8991

9092
warnSpy.mockRestore()
9193
})

0 commit comments

Comments
 (0)