Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion e2e/tests/nutrition-fueling.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ test.describe('Nutrition fueling plan', () => {
}

const dayOffset = (offset: number) => new Date(getWeekStart().getTime() + offset * 86400000)
const dateKey = (date: Date) => date.toISOString().slice(0, 10)
const dateKey = (date: Date) =>
[
date.getFullYear(),
String(date.getMonth() + 1).padStart(2, '0'),
String(date.getDate()).padStart(2, '0')
].join('-')

// Keep this suite away from the current and next day. Other parallel E2E specs create
// workouts there, which would otherwise change the number of generated fueling windows.
Expand Down
Loading