From 74fe3f4c05c8c0d0e24cfe8b8978f635dec3afd2 Mon Sep 17 00:00:00 2001 From: Pierre MARTIN Date: Wed, 18 Nov 2026 15:08:29 +0100 Subject: [PATCH] Test MCP de propose_wod : type du format Co-Authored-By: Claude Opus 5.5 --- tests/server/mcp.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/server/mcp.test.js b/tests/server/mcp.test.js index 521a093..be4bff7 100644 --- a/tests/server/mcp.test.js +++ b/tests/server/mcp.test.js @@ -171,7 +171,7 @@ test("propose_session_change : une séance d'étirements aux refs inventées dev }); test("propose_wod : WOD ponctuel ajouté hors rotation, clé choisie, WOD ponctuels faits retirés", async () => { - const wod = { name: "Cindy", format: { type: "amrap", minutes: 20 }, + const wod = { name: "Cindy", format: { type: /** @type {const} */ ("amrap"), minutes: 20 }, exercises: [{ ref: "pull-up", sets: 1, reps: "5", rest: 0 }, { ref: "push-up", sets: 1, reps: "10", rest: 0 }, { ref: "bodyweight-squat", sets: 1, reps: "15", rest: 0 }] }; const program = { ...EXAMPLE_PROGRAM, sessions: [...EXAMPLE_PROGRAM.sessions, { ...wod, key: "J1", oneOff: true }] }; const events = [...history(), createEvent("ProgramAdopted", { program, source: "ai" }, { device, at: "2026-11-15T10:00:00.000Z" }),