Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add a "when", otherwise mockito complains no stub value to return
  • Loading branch information
fzyzcjy committed Mar 6, 2021
commit 20a93230f04d3d7575cd09467c1ccb17d3985884
2 changes: 2 additions & 0 deletions flutter/test/default_integrations_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ void main() {
FlutterError.onError =
handler ?? (FlutterErrorDetails errorDetails) async {};

when(fixture.hub.captureEvent(captureAny)).thenAnswer((_) => Future.value(SentryId.empty()));

FlutterErrorIntegration()(fixture.hub, fixture.options);

final throwable = exception ?? StateError('error');
Expand Down