Skip to content

Commit

Permalink
Fix mock session handling in MockCustomTabsPlatform
Browse files Browse the repository at this point in the history
  • Loading branch information
droibit committed Nov 16, 2024
1 parent be87184 commit 12f4af3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flutter_custom_tabs/test/mocks/mock_custom_tabs_platform.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ class MockCustomTabsPlatform extends Fake
@override
Future<void> invalidate(PlatformSession session) async {
if (session is CustomTabsSession) {
final expected = sessionOptions as CustomTabsSession;
final expected = this.session as CustomTabsSession;
expect(session.packageName, expected.packageName);
} else if (session is SafariViewPrewarmingSession) {
final expected = sessionOptions as SafariViewPrewarmingSession;
final expected = this.session as SafariViewPrewarmingSession;
expect(session.id, expected.id);
} else {
expect(session, isNotNull);
Expand Down

0 comments on commit 12f4af3

Please sign in to comment.