Correctif : type du format dans le test MCP de propose_wod #25
@@ -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" }),
|
||||
|
||||
Reference in New Issue
Block a user