From e58ecd98ffa7b03cb15dddae2ecde4a8fd1daf5b Mon Sep 17 00:00:00 2001 From: dshukertjr <18113850+dshukertjr@users.noreply.github.com> Date: Wed, 6 Jul 2022 17:55:27 +0900 Subject: [PATCH] fix: updated method channel mock to work with the new deeplink package --- test/supabase_flutter_test.dart | 2 +- test/widget_test.dart | 2 +- test/widget_test_stubs.dart | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/supabase_flutter_test.dart b/test/supabase_flutter_test.dart index 6170a40f..24490ddd 100644 --- a/test/supabase_flutter_test.dart +++ b/test/supabase_flutter_test.dart @@ -8,7 +8,7 @@ void main() { const supabaseKey = ''; setUpAll(() async { - mockUniLink(); + mockAppLink(); // Initialize the Supabase singleton await Supabase.initialize( url: supabaseUrl, diff --git a/test/widget_test.dart b/test/widget_test.dart index 7acedae8..addc7f13 100644 --- a/test/widget_test.dart +++ b/test/widget_test.dart @@ -10,7 +10,7 @@ void main() { const supabaseKey = ''; setUpAll(() async { - mockUniLink(); + mockAppLink(); // Initialize the Supabase singleton await Supabase.initialize( diff --git a/test/widget_test_stubs.dart b/test/widget_test_stubs.dart index 51eeb8c6..a9bd07eb 100644 --- a/test/widget_test_stubs.dart +++ b/test/widget_test_stubs.dart @@ -53,8 +53,8 @@ class MockLocalStorage extends LocalStorage { } // Register the mock handler for uni_links -void mockUniLink() { - const channel = MethodChannel('uni_links/messages'); +void mockAppLink() { + const channel = MethodChannel('com.llfbandit.app_links/messages'); TestWidgetsFlutterBinding.ensureInitialized(); TestDefaultBinaryMessengerBinding.instance?.defaultBinaryMessenger