Skip to content

Commit

Permalink
refactor: run dart formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
srieteja committed Jan 11, 2024
1 parent 5a724a8 commit dfa6750
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/at_client/lib/src/client/at_client_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, dynamic> enrollRequests = jsonDecode(response!);
return enrollRequests;
Expand Down
3 changes: 2 additions & 1 deletion packages/at_client/lib/src/client/at_client_spec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -574,5 +574,6 @@ abstract class AtClient {
EncryptionService? get encryptionService;

/// Fetches all enrollment requests from the corresponding atServer
Future<Map<String, dynamic>> fetchEnrollmentRequests({String? appName, String? deviceName});
Future<Map<String, dynamic>> fetchEnrollmentRequests(
{String? appName, String? deviceName});
}
6 changes: 3 additions & 3 deletions packages/at_client/test/at_client_impl_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit dfa6750

Please sign in to comment.