Skip to content

Commit 217ead5

Browse files
committed
test(acp): expect optional fields in fallback forms
1 parent 876d5c2 commit 217ead5

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.ts‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,15 @@ describe("AcpAdapterV2", () => {
14461446
{
14471447
scenario: "falls back for an unrelated form",
14481448
schema: { type: "object", properties: { name: { type: "string" } } },
1449-
questions: [{ id: "name", header: "Question 1", question: "Your answer?", options: [] }],
1449+
questions: [
1450+
{
1451+
id: "name",
1452+
header: "Question 1",
1453+
question: "Your answer?",
1454+
options: [],
1455+
required: false,
1456+
},
1457+
],
14501458
answers: { name: "Ada" },
14511459
result: { action: "accept", content: { name: "Ada" } },
14521460
},

0 commit comments

Comments
 (0)