From 368f4a5b0c88dc7f8269f5d06fd1a289fed47fbd Mon Sep 17 00:00:00 2001 From: Erick Zanardo Date: Tue, 3 May 2022 21:54:27 -0300 Subject: [PATCH] fix: some errors --- test/app/view/app_test.dart | 2 +- test/helpers/pump_app.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/app/view/app_test.dart b/test/app/view/app_test.dart index ca1cedff..158d0d08 100644 --- a/test/app/view/app_test.dart +++ b/test/app/view/app_test.dart @@ -24,7 +24,7 @@ void main() { authenticationRepository = _MockAuthenticationRepository(); leaderboardRepository = _MockLeaderboardRepository(); pinballAudio = _MockPinballAudio(); - when(pinballAudio.load).thenAnswer((_) => Future.value()); + when(pinballAudio.load).thenAnswer((_) => [Future.value()]); }); testWidgets('renders PinballGamePage', (tester) async { diff --git a/test/helpers/pump_app.dart b/test/helpers/pump_app.dart index a7d7ae67..0e89aadb 100644 --- a/test/helpers/pump_app.dart +++ b/test/helpers/pump_app.dart @@ -28,7 +28,7 @@ class _MockPinballAudio extends Mock implements PinballAudio {} PinballAudio _buildDefaultPinballAudio() { final audio = _MockPinballAudio(); - when(audio.load).thenAnswer((_) => Future.value()); + when(audio.load).thenAnswer((_) => [Future.value()]); return audio; }