From d708b10ccd165d707b8fa9e79188f2274ca211c6 Mon Sep 17 00:00:00 2001 From: David Antoon Date: Mon, 2 Sep 2024 12:22:53 +0300 Subject: [PATCH] fix test code --- lib/src/frontegg_method_channel.dart | 2 +- test/src/frontegg_flutter_test.custom_mocks.dart | 2 ++ test/src/frontegg_provider_test.mocks.dart | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/src/frontegg_method_channel.dart b/lib/src/frontegg_method_channel.dart index 91279e9..36bec03 100644 --- a/lib/src/frontegg_method_channel.dart +++ b/lib/src/frontegg_method_channel.dart @@ -63,7 +63,7 @@ class FronteggMethodChannel extends FronteggPlatform { /// /// Returns a [Future] that completes when the login action is finished. @override - Future directLoginAction(String type, String data,{bool ephemeralSession = true}) => + Future directLoginAction(String type, String data, {bool ephemeralSession = true}) => methodChannel.invokeMethod( directLoginActionMethodName, { diff --git a/test/src/frontegg_flutter_test.custom_mocks.dart b/test/src/frontegg_flutter_test.custom_mocks.dart index f98f654..f7f1571 100644 --- a/test/src/frontegg_flutter_test.custom_mocks.dart +++ b/test/src/frontegg_flutter_test.custom_mocks.dart @@ -62,6 +62,7 @@ class MockFronteggPlatform extends _i1.Mock _i3.Future directLoginAction( String? type, String? data, + {bool ephemeralSession = true} ) => (super.noSuchMethod( Invocation.method( @@ -69,6 +70,7 @@ class MockFronteggPlatform extends _i1.Mock [ type, data, + ephemeralSession ], ), returnValue: _i3.Future.value(), diff --git a/test/src/frontegg_provider_test.mocks.dart b/test/src/frontegg_provider_test.mocks.dart index 7ee548a..882ef88 100644 --- a/test/src/frontegg_provider_test.mocks.dart +++ b/test/src/frontegg_provider_test.mocks.dart @@ -100,6 +100,7 @@ class MockFronteggFlutter extends _i1.Mock implements _i4.FronteggFlutter { _i5.Future directLoginAction( String? type, String? data, + {bool ephemeralSession = true} ) => (super.noSuchMethod( Invocation.method( @@ -107,6 +108,7 @@ class MockFronteggFlutter extends _i1.Mock implements _i4.FronteggFlutter { [ type, data, + ephemeralSession ], ), returnValue: _i5.Future.value(),