Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Merculiar committed Jul 17, 2024
1 parent 4570c29 commit e1775e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -84,6 +85,7 @@ Future<void> main() async {
confirm,
const StubAnalyticsManager(),
createDirectPayment,
const StubRefreshBalance(),
);

Future<String> createODP(ODPService service) async {
Expand Down
8 changes: 8 additions & 0 deletions packages/espressocash_app/test/stub_refresh_balance.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import 'package:espressocash_app/features/balances/services/refresh_balance.dart';

class StubRefreshBalance implements RefreshBalance {
const StubRefreshBalance();

@override
Future<void> call() async {}
}

0 comments on commit e1775e8

Please sign in to comment.