Skip to content

Commit

Permalink
fix test code
Browse files Browse the repository at this point in the history
  • Loading branch information
frontegg-david committed Sep 2, 2024
1 parent 5746842 commit d708b10
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/frontegg_method_channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class FronteggMethodChannel extends FronteggPlatform {
///
/// Returns a [Future] that completes when the login action is finished.
@override
Future<void> directLoginAction(String type, String data,{bool ephemeralSession = true}) =>
Future<void> directLoginAction(String type, String data, {bool ephemeralSession = true}) =>
methodChannel.invokeMethod(
directLoginActionMethodName,
{
Expand Down
2 changes: 2 additions & 0 deletions test/src/frontegg_flutter_test.custom_mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,15 @@ class MockFronteggPlatform extends _i1.Mock
_i3.Future<void> directLoginAction(
String? type,
String? data,
{bool ephemeralSession = true}
) =>
(super.noSuchMethod(
Invocation.method(
#directLoginAction,
[
type,
data,
ephemeralSession
],
),
returnValue: _i3.Future<void>.value(),
Expand Down
2 changes: 2 additions & 0 deletions test/src/frontegg_provider_test.mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,15 @@ class MockFronteggFlutter extends _i1.Mock implements _i4.FronteggFlutter {
_i5.Future<void> directLoginAction(
String? type,
String? data,
{bool ephemeralSession = true}
) =>
(super.noSuchMethod(
Invocation.method(
#directLoginAction,
[
type,
data,
ephemeralSession
],
),
returnValue: _i5.Future<void>.value(),
Expand Down

0 comments on commit d708b10

Please sign in to comment.