diff --git a/test/blocs/weekplans_bloc_test.dart b/test/blocs/weekplans_bloc_test.dart index c4f55b9e..79f2b7eb 100644 --- a/test/blocs/weekplans_bloc_test.dart +++ b/test/blocs/weekplans_bloc_test.dart @@ -80,7 +80,6 @@ void main() { when(() => weekApi.get( 'test', weekNameModel5.weekYear!, weekNameModel5.weekNumber!)) .thenAnswer((_) => rx_dart.BehaviorSubject.seeded(weekModel5)); - when(() => weekApi.get( 'test', weekNameModel6.weekYear!, weekNameModel6.weekNumber!)) .thenAnswer((_) => rx_dart.BehaviorSubject.seeded(weekModel6)); @@ -88,18 +87,6 @@ void main() { when(() => weekApi.delete(any(), any(), any())) .thenAnswer((_) => rx_dart.BehaviorSubject.seeded(true)); - when(() => weekApi.delete(any(), any(), any())) - .thenAnswer((_) => rx_dart.BehaviorSubject.seeded(true)); - - test('Should be able to load weekplans for a user', async((DoneFn done) { - when(() => weekApi.get( - mockUser.id!, weekNameModel1.weekYear!, weekNameModel1.weekNumber!)) - .thenAnswer( - (_) => rx_dart.BehaviorSubject.seeded(weekModel1)); - - when(() => weekApi.getNames(mockUser.id!)).thenAnswer((_) => - rx_dart.BehaviorSubject>.seeded(weekNameModelList)); - // Checks if the loaded weekNameModels are not null and are equal to the // expected weekName model list bloc.weekNameModels.listen((List? response) {