test(todo-continuation): add promptAsync mocks for migrated hook

This commit is contained in:
Peïo Thibault
2026-02-07 13:51:28 +01:00
parent fd403b065c
commit 35f889b175
@@ -152,6 +152,15 @@ describe("todo-continuation-enforcer", () => {
}) })
return {} return {}
}, },
promptAsync: async (opts: any) => {
promptCalls.push({
sessionID: opts.path.id,
agent: opts.body.agent,
model: opts.body.model,
text: opts.body.parts[0].text,
})
return {}
},
}, },
tui: { tui: {
showToast: async (opts: any) => { showToast: async (opts: any) => {
@@ -986,6 +995,15 @@ describe("todo-continuation-enforcer", () => {
}) })
return {} return {}
}, },
promptAsync: async (opts: any) => {
promptCalls.push({
sessionID: opts.path.id,
agent: opts.body.agent,
model: opts.body.model,
text: opts.body.parts[0].text,
})
return {}
},
}, },
tui: { showToast: async () => ({}) }, tui: { showToast: async () => ({}) },
}, },
@@ -1038,6 +1056,15 @@ describe("todo-continuation-enforcer", () => {
}) })
return {} return {}
}, },
promptAsync: async (opts: any) => {
promptCalls.push({
sessionID: opts.path.id,
agent: opts.body.agent,
model: opts.body.model,
text: opts.body.parts[0].text,
})
return {}
},
}, },
tui: { showToast: async () => ({}) }, tui: { showToast: async () => ({}) },
}, },
@@ -1082,6 +1109,15 @@ describe("todo-continuation-enforcer", () => {
}) })
return {} return {}
}, },
promptAsync: async (opts: any) => {
promptCalls.push({
sessionID: opts.path.id,
agent: opts.body.agent,
model: opts.body.model,
text: opts.body.parts[0].text,
})
return {}
},
}, },
tui: { showToast: async () => ({}) }, tui: { showToast: async () => ({}) },
}, },
@@ -1128,6 +1164,15 @@ describe("todo-continuation-enforcer", () => {
}) })
return {} return {}
}, },
promptAsync: async (opts: any) => {
promptCalls.push({
sessionID: opts.path.id,
agent: opts.body.agent,
model: opts.body.model,
text: opts.body.parts[0].text,
})
return {}
},
}, },
tui: { showToast: async () => ({}) }, tui: { showToast: async () => ({}) },
}, },
@@ -1174,6 +1219,15 @@ describe("todo-continuation-enforcer", () => {
}) })
return {} return {}
}, },
promptAsync: async (opts: any) => {
promptCalls.push({
sessionID: opts.path.id,
agent: opts.body.agent,
model: opts.body.model,
text: opts.body.parts[0].text,
})
return {}
},
}, },
tui: { showToast: async () => ({}) }, tui: { showToast: async () => ({}) },
}, },