diff --git a/src/generateZwo.ts b/src/generateZwo.ts
index bb63302..072062b 100644
--- a/src/generateZwo.ts
+++ b/src/generateZwo.ts
@@ -105,7 +105,7 @@ export const generateZwo = ({ name, author, description, intervals }: Workout):
{ author: author },
{ description: description },
{ sportType: "bike" },
- ...detectRepeats(intervals).map(generateInterval),
+ { workout: detectRepeats(intervals).map(generateInterval) },
],
},
{ indent: " " },
diff --git a/src/test/__snapshots__/cli.test.ts.snap b/src/test/__snapshots__/cli.test.ts.snap
index fdfcd15..1819f81 100644
--- a/src/test/__snapshots__/cli.test.ts.snap
+++ b/src/test/__snapshots__/cli.test.ts.snap
@@ -6,60 +6,62 @@ exports[`Generate ZWO examples/comments.txt 1`] = `
bike
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
"
`;
@@ -69,12 +71,14 @@ exports[`Generate ZWO examples/darth-vader.txt 1`] = `
HumanPowerPerformance.com
Sign up for coaching with HumanPowerPerformance.com and get custom workouts and training plans
bike
-
-
-
-
-
-
+
+
+
+
+
+
+
+
"
`;
@@ -90,54 +94,56 @@ you will be scored on the final 20 minute segment.
Upon saving your ride, you will be notified if your FTP improved.
bike
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
"
`;
@@ -149,58 +155,60 @@ exports[`Generate ZWO examples/halvfems.txt 1`] = `
This pairs with Devedeset (90 in Croatian) and Novanta (90 in Italian) to make up the sweet spot trifecta in this plan.
The workouts are alphabetically ordered from easiest to hardest, so enjoy the middle of these three challenging workouts today...
bike
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
"
`;
@@ -217,14 +225,16 @@ Working predominately aerobic metabolism.
In time your body will become more comfortable at these powers
and your FTP will increase.
bike
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
"
`;