Skip to content

Commit

Permalink
Added tests for loginWithPasskeys and registerPasskeys
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-minaiev-frontegg committed Nov 11, 2024
1 parent a8ca1a0 commit 0e7d36a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/src/frontegg_method_channel_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ void main() {
return null;
case FronteggMethodChannel.directLoginActionMethodName:
return null;
case FronteggMethodChannel.registerPasskeysMethodName:
return null;
case FronteggMethodChannel.loginWithPasskeysMethodName:
return null;
}
throw Exception("${methodCall.method} Not Implemented");
},
Expand Down Expand Up @@ -79,6 +83,14 @@ void main() {
await platform.directLoginAction("type", "data");
});

test('registerPasskeys()', () async {
await platform.registerPasskeys();
});

test('loginWithPasskeys()', () async {
await platform.loginWithPasskeys();
});

group('StateEventChannel', () {
test('should return valid FronteggState Map', () async {
// Asser Later
Expand Down

0 comments on commit 0e7d36a

Please sign in to comment.