mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-29 15:52:36 +01:00
test(runner): assert admitted ACPX turn contract
This commit is contained in:
1 parent
fd16a3f9c7
commit
82a739a580
1 file changed
+9
-8
@@ -1286,14 +1286,15 @@ describe("Codex ACPX runtime adapter", () => {
|
||||
const signal = new AbortController().signal;
|
||||
const onElicitation = vi.fn();
|
||||
|
||||
expect(
|
||||
port.startTurn({
|
||||
text: "Complete the task.",
|
||||
requestId: "turn-1",
|
||||
signal,
|
||||
onElicitation,
|
||||
}),
|
||||
).toBe(turn);
|
||||
const admittedTurn = port.startTurn({
|
||||
text: "Complete the task.",
|
||||
requestId: "turn-1",
|
||||
signal,
|
||||
onElicitation,
|
||||
});
|
||||
expect(admittedTurn.requestId).toBe(turn.requestId);
|
||||
await expect(admittedTurn.promptStarted).resolves.toBeUndefined();
|
||||
await expect(admittedTurn.result).resolves.toEqual({ status: "completed" });
|
||||
expect(runtime.startTurn).toHaveBeenCalledWith({
|
||||
handle: HANDLE,
|
||||
text: "Complete the task.",
|
||||
|
||||
Reference in new issue
Block a user