diff --git a/packages/at_client/lib/src/client/at_client_impl.dart b/packages/at_client/lib/src/client/at_client_impl.dart index 16ee1a578..bd8052f31 100644 --- a/packages/at_client/lib/src/client/at_client_impl.dart +++ b/packages/at_client/lib/src/client/at_client_impl.dart @@ -681,7 +681,8 @@ class AtClientImpl implements AtClient, AtSignChangeListener { ..appName = appName ..deviceName = deviceName; - var response = await getRemoteSecondary()?.executeCommand(enrollBuilder.buildCommand(), auth: true); + var response = await getRemoteSecondary() + ?.executeCommand(enrollBuilder.buildCommand(), auth: true); response = response?.replaceFirst('data:', ''); Map enrollRequests = jsonDecode(response!); return enrollRequests; diff --git a/packages/at_client/lib/src/client/at_client_spec.dart b/packages/at_client/lib/src/client/at_client_spec.dart index f3ee463b4..ba8616ecd 100644 --- a/packages/at_client/lib/src/client/at_client_spec.dart +++ b/packages/at_client/lib/src/client/at_client_spec.dart @@ -574,5 +574,6 @@ abstract class AtClient { EncryptionService? get encryptionService; /// Fetches all enrollment requests from the corresponding atServer - Future> fetchEnrollmentRequests({String? appName, String? deviceName}); + Future> fetchEnrollmentRequests( + {String? appName, String? deviceName}); } diff --git a/packages/at_client/test/at_client_impl_test.dart b/packages/at_client/test/at_client_impl_test.dart index 8d5d0794c..e80030e3d 100644 --- a/packages/at_client/test/at_client_impl_test.dart +++ b/packages/at_client/test/at_client_impl_test.dart @@ -283,9 +283,9 @@ void main() { String enrollValue3 = '{"appName":"buzz","deviceName":"pixel","namespace":{"buzz":"rw"}}'; when(() => - mockRemoteSecondary.executeCommand('enroll:list\n', auth: true)) - .thenAnswer((_) => Future.value('data:{"$enrollKey1":' - '$enrollValue1,"$enrollKey2":$enrollValue2,"$enrollKey3":$enrollValue3}')); + mockRemoteSecondary.executeCommand('enroll:list\n', + auth: true)).thenAnswer((_) => Future.value('data:{"$enrollKey1":' + '$enrollValue1,"$enrollKey2":$enrollValue2,"$enrollKey3":$enrollValue3}')); AtClient? client = await AtClientImpl.create( currentAtsign, 'buzz', AtClientPreference(),