From e1775e8955963b7a91e95104ca20a81f803f5f71 Mon Sep 17 00:00:00 2001 From: Vlad Sumin Date: Wed, 17 Jul 2024 14:19:13 +0300 Subject: [PATCH] Fix test --- .../services/odp_service_test.dart | 2 ++ packages/espressocash_app/test/stub_refresh_balance.dart | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 packages/espressocash_app/test/stub_refresh_balance.dart diff --git a/packages/espressocash_app/test/features/outgoing_direct_payments/services/odp_service_test.dart b/packages/espressocash_app/test/features/outgoing_direct_payments/services/odp_service_test.dart index 95f411b74d..012388a0df 100644 --- a/packages/espressocash_app/test/features/outgoing_direct_payments/services/odp_service_test.dart +++ b/packages/espressocash_app/test/features/outgoing_direct_payments/services/odp_service_test.dart @@ -22,6 +22,7 @@ import 'package:solana/encoder.dart'; import 'package:solana/solana.dart'; import '../../../stub_analytics_manager.dart'; +import '../../../stub_refresh_balance.dart'; import 'odp_service_test.mocks.dart'; final confirm = MockTxConfirm(); @@ -84,6 +85,7 @@ Future main() async { confirm, const StubAnalyticsManager(), createDirectPayment, + const StubRefreshBalance(), ); Future createODP(ODPService service) async { diff --git a/packages/espressocash_app/test/stub_refresh_balance.dart b/packages/espressocash_app/test/stub_refresh_balance.dart new file mode 100644 index 0000000000..c6a410f6b1 --- /dev/null +++ b/packages/espressocash_app/test/stub_refresh_balance.dart @@ -0,0 +1,8 @@ +import 'package:espressocash_app/features/balances/services/refresh_balance.dart'; + +class StubRefreshBalance implements RefreshBalance { + const StubRefreshBalance(); + + @override + Future call() async {} +}