fix(test): correct browserProvider assertion to match actual behavior

When browserProvider is not set, agent-browser skill should NOT resolve.
Test assertions were inverted — expected 'Skills not found' but asserted the opposite.
This commit is contained in:
IYODA Atsushi 2026-02-19 12:55:04 +09:00 committed by YeonGyu-Kim
parent fcaaa11a06
commit a8e3e1ea01

View File

@ -2679,11 +2679,9 @@ describe("sisyphus-task", () => {
toolContext
)
// then - skill content should be injected
expect(result).not.toContain("Skills not found")
expect(promptBody).toBeDefined()
expect(promptBody.system).toContain("<Category_Context>")
expect(String(promptBody.system).startsWith("<Category_Context>")).toBe(false)
// then - agent-browser skill should NOT resolve without browserProvider
expect(result).toContain("Skills not found")
expect(result).toContain("agent-browser")
})
})