File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
packages/local_auth/local_auth_android/test Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,11 @@ void main() {
6565
6666 group ('getEnrolledBiometrics' , () {
6767 test ('translates values' , () async {
68- when (api.getEnrolledBiometrics ()). thenAnswer ((_) async =>
69- < AuthClassification > [
70- AuthClassification .weak,
71- AuthClassification .strong
72- ]);
68+ when (api.getEnrolledBiometrics ())
69+ . thenAnswer ((_) async => < AuthClassificationWrapper > [
70+ AuthClassificationWrapper (value : AuthClassification .weak) ,
71+ AuthClassificationWrapper (value : AuthClassification .strong),
72+ ]);
7373
7474 final List <BiometricType > result = await plugin.getEnrolledBiometrics ();
7575
@@ -81,7 +81,7 @@ void main() {
8181
8282 test ('handles emtpy' , () async {
8383 when (api.getEnrolledBiometrics ())
84- .thenAnswer ((_) async => < AuthClassification > []);
84+ .thenAnswer ((_) async => < AuthClassificationWrapper > []);
8585
8686 final List <BiometricType > result = await plugin.getEnrolledBiometrics ();
8787
Original file line number Diff line number Diff line change @@ -63,15 +63,15 @@ class MockLocalAuthApi extends _i1.Mock implements _i2.LocalAuthApi {
6363 returnValue: _i3.Future <bool >.value (false ),
6464 ) as _i3.Future <bool >);
6565 @override
66- _i3.Future <List <_i2.AuthClassification ?>> getEnrolledBiometrics () =>
66+ _i3.Future <List <_i2.AuthClassificationWrapper ?>> getEnrolledBiometrics () =>
6767 (super .noSuchMethod (
6868 Invocation .method (
6969 #getEnrolledBiometrics,
7070 [],
7171 ),
72- returnValue: _i3.Future <List <_i2.AuthClassification ?>>.value (
73- < _i2.AuthClassification ? > []),
74- ) as _i3.Future <List <_i2.AuthClassification ?>>);
72+ returnValue: _i3.Future <List <_i2.AuthClassificationWrapper ?>>.value (
73+ < _i2.AuthClassificationWrapper ? > []),
74+ ) as _i3.Future <List <_i2.AuthClassificationWrapper ?>>);
7575 @override
7676 _i3.Future <_i2.AuthResultWrapper > authenticate (
7777 _i2.AuthOptions ? arg_options,
You can’t perform that action at this time.
0 commit comments