From ebd768057fae610dd09420434f47e48c4fc20ff4 Mon Sep 17 00:00:00 2001 From: Crondung <1922635@stud.hs-mannheim.de> Date: Tue, 7 Mar 2023 00:06:07 +0100 Subject: [PATCH] adjust workout provider tests --- test/unit_tests/workout_provider_test.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit_tests/workout_provider_test.dart b/test/unit_tests/workout_provider_test.dart index f708703..1d5c84c 100644 --- a/test/unit_tests/workout_provider_test.dart +++ b/test/unit_tests/workout_provider_test.dart @@ -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); });