Skip to content

Commit

Permalink
test: fix trackScreenView test
Browse files Browse the repository at this point in the history
  • Loading branch information
naipaka committed Mar 18, 2024
1 parent 7a6e8ef commit 7bdd24c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/altfire_tracker/test/src/tracker_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ void main() {

const screenName = 'screen';
when(
() => analytics.setCurrentScreen(
() => analytics.logScreenView(
screenName: screenName,
),
).thenAnswer((_) async {});
Expand All @@ -288,7 +288,7 @@ void main() {
await tracker.trackScreenView(screenName);

verify(
() => analytics.setCurrentScreen(
() => analytics.logScreenView(
screenName: screenName,
),
).called(1);
Expand Down

0 comments on commit 7bdd24c

Please sign in to comment.