Skip to content

Commit

Permalink
fix: updated method channel mock to work with the new deeplink package
Browse files Browse the repository at this point in the history
  • Loading branch information
dshukertjr committed Jul 6, 2022
1 parent bef4778 commit 2cdbe71
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/supabase_flutter_test.dart
Expand Up @@ -9,7 +9,7 @@ void main() {
const supabaseKey = '';

setUpAll(() async {
mockUniLink();
mockAppLink();
// Initialize the Supabase singleton
await Supabase.initialize(
url: supabaseUrl,
Expand Down
2 changes: 1 addition & 1 deletion test/widget_test.dart
Expand Up @@ -10,7 +10,7 @@ void main() {
const supabaseKey = '';

setUpAll(() async {
mockUniLink();
mockAppLink();

// Initialize the Supabase singleton
await Supabase.initialize(
Expand Down
4 changes: 2 additions & 2 deletions test/widget_test_stubs.dart
Expand Up @@ -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
Expand Down

0 comments on commit 2cdbe71

Please sign in to comment.