From 7f35a9a6b19fc13f205a72d4b0ff32ce39c6bad5 Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Thu, 1 Oct 2020 20:04:21 +0300 Subject: [PATCH] Add the missing tag :) --- src/generateZwo.ts | 2 +- src/test/__snapshots__/cli.test.ts.snap | 346 ++++++++++++------------ 2 files changed, 179 insertions(+), 169 deletions(-) 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 - - - - - - - - + + + + + + + + + + " `;