Skip to content

Commit

Permalink
tests: add aanalytic test
Browse files Browse the repository at this point in the history
  • Loading branch information
WezSieTato committed Feb 2, 2025
1 parent e8de840 commit 1c8928b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/analytics/analytics_main_tab.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

enum AnalyticsMainTab {
scanner("Scanner"),
search("Search"),
news("News_feed");

final String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,14 @@ void main() {
)).called(1);
});

test('searchOpened should send searchOpened event name', () {
polaAnalytics.searchOpened();

verify(mockAnalyticsProvider.logEvent(
'search_opened',
null
)).called(1);
});

});
}

0 comments on commit 1c8928b

Please sign in to comment.