mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-30 16:22:09 +00:00
test(core): make test sentinels effective (#45706)
This commit is contained in:
parent
8ab08f7fc9
commit
35d681afab
2 changed files with 3 additions and 2 deletions
|
|
@ -162,7 +162,6 @@ test("Core reuses the canonical shared schemas", async () => {
|
|||
]
|
||||
for (const [core, shared] of schemas) expect(core).toBe(shared)
|
||||
|
||||
expect(Agent.Info.default(Agent.ID.make("test"))).toEqual(Agent.Info.default(Agent.ID.make("test")))
|
||||
expect(coreModel.Info.default(coreProvider.ID.make("test"), coreModel.ID.make("model"))).toEqual(
|
||||
Model.Info.default(Provider.ID.make("test"), Model.ID.make("model")),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -45,7 +45,9 @@ describe("Skill", () => {
|
|||
value.description = "Updated"
|
||||
value.id = Skill.ID.make("ignored")
|
||||
})
|
||||
draft.update("missing", () => Effect.die("unreachable"))
|
||||
draft.update("missing", () => {
|
||||
throw new Error("unreachable")
|
||||
})
|
||||
draft.add(info("deploy", "Deploy"))
|
||||
draft.remove("deploy")
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue