Skip to content

Commit a7be58d

Browse files
committed
feat: added stub for integration test
1 parent 627c3f1 commit a7be58d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/test/amplify_integration_test/lib/src/stubs/amplify_auth_cognito_stub.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,13 @@ class AmplifyAuthCognitoStub extends AuthPluginInterface
368368
);
369369
}
370370

371+
@override
372+
Future<AuthDevice> fetchCurrentDevice() async {
373+
throw UnimplementedError(
374+
'fetchCurrentDevice is not implemented.',
375+
);
376+
}
377+
371378
@override
372379
Future<void> forgetDevice([AuthDevice? device]) async {
373380
throw UnimplementedError(
@@ -391,7 +398,6 @@ class AmplifyAuthCognitoStub extends AuthPluginInterface
391398
}
392399

393400
class MockCognitoUser {
394-
395401
factory MockCognitoUser({
396402
required String username,
397403
required String password,

0 commit comments

Comments
 (0)