rename reject to decline

This commit is contained in:
ihrpr 2025-07-03 15:51:16 +01:00
commit 25048b9eaf
No known key found for this signature in database

View file

@ -538,7 +538,7 @@ test("should allow elicitation reject and cancel without validation", async () =
client.setRequestHandler(ElicitRequestSchema, (request) => {
requestCount++;
if (requestCount === 1) {
return { action: "reject" };
return { action: "decline" };
} else {
return { action: "cancel" };
}
@ -566,7 +566,7 @@ test("should allow elicitation reject and cancel without validation", async () =
requestedSchema: schema,
}),
).resolves.toEqual({
action: "reject",
action: "decline",
});
// Test cancel - should not validate