Skip to content

Commit

Permalink
Cast to non-null in expect
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasyishak committed Feb 27, 2024
1 parent 9c3b2e4 commit 9fd16b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkgs/unified_analytics/test/unified_analytics_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ void main() {
.where((element) => element.eventName == DashEvent.analyticsException)
.firstOrNull;
expect(errorEvent, isNotNull);
errorEvent!;
expect(errorEvent.eventData['workflow'], 'Session._refreshSessionData');
expect(errorEvent!.eventData['workflow'], 'Session._refreshSessionData');
expect(errorEvent.eventData['error'], 'FormatException');
expect(errorEvent.eventData['description'],
'message: Unexpected character\nsource: contents');
Expand Down

0 comments on commit 9fd16b5

Please sign in to comment.