fix(tasks-hook): update default task_system test
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -78,7 +78,7 @@ describe("tasks-todowrite-disabler", () => {
|
|||||||
).resolves.toBeUndefined()
|
).resolves.toBeUndefined()
|
||||||
})
|
})
|
||||||
|
|
||||||
test("should block TodoWrite when experimental is undefined because task_system defaults to enabled", async () => {
|
test("should not block TodoWrite when experimental is undefined because task_system defaults to disabled", async () => {
|
||||||
// given
|
// given
|
||||||
const hook = createTasksTodowriteDisablerHook({})
|
const hook = createTasksTodowriteDisablerHook({})
|
||||||
const input = {
|
const input = {
|
||||||
@@ -93,7 +93,7 @@ describe("tasks-todowrite-disabler", () => {
|
|||||||
// when / then
|
// when / then
|
||||||
await expect(
|
await expect(
|
||||||
hook["tool.execute.before"](input, output)
|
hook["tool.execute.before"](input, output)
|
||||||
).rejects.toThrow("TodoRead/TodoWrite are DISABLED")
|
).resolves.toBeUndefined()
|
||||||
})
|
})
|
||||||
|
|
||||||
test("should not block TodoRead when flag is false", async () => {
|
test("should not block TodoRead when flag is false", async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user