Correctif : type du format dans le test MCP de propose_wod #25

Merged
pierre merged 1 commits from correctif-type-test into main 2026-11-18 14:08:39 +00:00
Showing only changes of commit 74fe3f4c05 - Show all commits
+1 -1
View File
@@ -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" }),