adjust workout provider tests
parent
8f4ae946de
commit
ebd768057f
|
@ -27,7 +27,7 @@ void main() {
|
|||
expect(workoutProvider.motivationBefore, 50);
|
||||
expect(workoutProvider.motivationAfter, 50);
|
||||
expect(workoutProvider.currentPhase, WorkoutPhases.warmUp);
|
||||
expect(workoutProvider.currentPhaseDuration, const Duration(seconds: 5));
|
||||
expect(workoutProvider.currentPhaseDuration, const Duration(minutes: 5));
|
||||
expect(workoutProvider.isPhaseComplete, false);
|
||||
expect(workoutProvider.currentPhaseColor, Colors.green);
|
||||
expect(workoutProvider.currentPhaseTitle, 'Warm Up');
|
||||
|
@ -37,7 +37,7 @@ void main() {
|
|||
workoutProvider.nextPhase();
|
||||
|
||||
expect(workoutProvider.currentPhase, WorkoutPhases.highIntensity);
|
||||
expect(workoutProvider.currentPhaseDuration, const Duration(seconds: 4));
|
||||
expect(workoutProvider.currentPhaseDuration, const Duration(minutes: 4));
|
||||
expect(workoutProvider.isPhaseComplete, false);
|
||||
expect(workoutProvider.currentPhaseColor, Colors.red);
|
||||
expect(workoutProvider.currentPhaseTitle, 'High Intensity');
|
||||
|
@ -49,7 +49,7 @@ void main() {
|
|||
expect(workoutProvider.isWorkoutStarted, true);
|
||||
expect(workoutProvider.isWorkoutComplete, false);
|
||||
expect(workoutProvider.currentPhase, WorkoutPhases.warmUp);
|
||||
expect(workoutProvider.currentPhaseDuration, const Duration(seconds: 5));
|
||||
expect(workoutProvider.currentPhaseDuration, const Duration(minutes: 5));
|
||||
expect(workoutProvider.isPhaseComplete, false);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue