test(todo-continuation): add promptAsync mocks for migrated hook
This commit is contained in:
parent
fad7354b13
commit
6451b212f8
@ -152,6 +152,15 @@ describe("todo-continuation-enforcer", () => {
|
||||
})
|
||||
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 (opts: any) => {
|
||||
@ -986,6 +995,15 @@ describe("todo-continuation-enforcer", () => {
|
||||
})
|
||||
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 () => ({}) },
|
||||
},
|
||||
@ -1038,6 +1056,15 @@ describe("todo-continuation-enforcer", () => {
|
||||
})
|
||||
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 () => ({}) },
|
||||
},
|
||||
@ -1082,6 +1109,15 @@ describe("todo-continuation-enforcer", () => {
|
||||
})
|
||||
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 () => ({}) },
|
||||
},
|
||||
@ -1128,6 +1164,15 @@ describe("todo-continuation-enforcer", () => {
|
||||
})
|
||||
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 () => ({}) },
|
||||
},
|
||||
@ -1174,6 +1219,15 @@ describe("todo-continuation-enforcer", () => {
|
||||
})
|
||||
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 () => ({}) },
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user