Skip to content

Commit b0c2048

Browse files
fix(ci): Reformat files for Dart 3.13 formatter (#7267)
1 parent 075f951 commit b0c2048

27 files changed

Lines changed: 1383 additions & 1576 deletions

File tree

packages/auth/amplify_auth_cognito_test/test/plugin/sign_out_test.dart

Lines changed: 43 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -497,58 +497,51 @@ void main() {
497497
expect(hubEvents, emitsSignOutEvent);
498498
});
499499

500-
test(
501-
'fails hard for user cancellation',
502-
() async {
503-
seedStorage(
504-
secureStorage,
505-
identityPoolKeys: identityPoolKeys,
506-
hostedUiKeys: hostedUiKeys,
507-
);
508-
stateMachine.addBuilder<HostedUiPlatform>(
509-
createHostedUiFactory(
510-
signIn:
511-
(
512-
HostedUiPlatform platform,
513-
CognitoSignInWithWebUIPluginOptions options,
514-
AuthProvider? provider,
515-
) async {},
516-
signOut:
517-
(
518-
HostedUiPlatform platform,
519-
CognitoSignInWithWebUIPluginOptions options,
520-
) async => throw const UserCancelledException(''),
521-
),
522-
);
523-
await plugin.configure(
524-
config: mockConfig,
525-
authProviderRepo: testAuthRepo,
526-
);
500+
test('fails hard for user cancellation', () async {
501+
seedStorage(
502+
secureStorage,
503+
identityPoolKeys: identityPoolKeys,
504+
hostedUiKeys: hostedUiKeys,
505+
);
506+
stateMachine.addBuilder<HostedUiPlatform>(
507+
createHostedUiFactory(
508+
signIn:
509+
(
510+
HostedUiPlatform platform,
511+
CognitoSignInWithWebUIPluginOptions options,
512+
AuthProvider? provider,
513+
) async {},
514+
signOut:
515+
(
516+
HostedUiPlatform platform,
517+
CognitoSignInWithWebUIPluginOptions options,
518+
) async => throw const UserCancelledException(''),
519+
),
520+
);
521+
await plugin.configure(
522+
config: mockConfig,
523+
authProviderRepo: testAuthRepo,
524+
);
527525

528-
await expectLater(
529-
plugin.stateMachine.getUserPoolTokens(),
530-
completes,
531-
);
532-
await expectLater(
533-
plugin.signOut(),
534-
completion(
535-
isA<CognitoFailedSignOut>().having(
536-
(res) => res.exception,
537-
'exception',
538-
isA<UserCancelledException>(),
539-
),
526+
await expectLater(plugin.stateMachine.getUserPoolTokens(), completes);
527+
await expectLater(
528+
plugin.signOut(),
529+
completion(
530+
isA<CognitoFailedSignOut>().having(
531+
(res) => res.exception,
532+
'exception',
533+
isA<UserCancelledException>(),
540534
),
541-
);
542-
expect(
543-
plugin.stateMachine.getUserPoolTokens(),
544-
completes,
545-
reason: 'Credentials were not cleared',
546-
);
547-
unawaited(hubEventsController.close());
548-
expect(hubEvents, neverEmits(emitsSignOutEvent));
549-
},
550-
skip: zIsWeb ? 'User cancellation is not possible on Web' : null,
551-
);
535+
),
536+
);
537+
expect(
538+
plugin.stateMachine.getUserPoolTokens(),
539+
completes,
540+
reason: 'Credentials were not cleared',
541+
);
542+
unawaited(hubEventsController.close());
543+
expect(hubEvents, neverEmits(emitsSignOutEvent));
544+
}, skip: zIsWeb ? 'User cancellation is not possible on Web' : null);
552545
});
553546
});
554547
});

packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/put_with_content_encoding_operation_test.dart

Lines changed: 38 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/put_with_content_encoding_operation_test.dart

Lines changed: 40 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/smithy/goldens/lib/awsJson1_1/test/machine_learning/predict_operation_test.dart

Lines changed: 40 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/smithy/goldens/lib/awsQuery/test/query_protocol/put_with_content_encoding_operation_test.dart

Lines changed: 36 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/smithy/goldens/lib/awsQuery/test/query_protocol/query_idempotency_token_auto_fill_operation_test.dart

Lines changed: 35 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/smithy/goldens/lib/awsQuery/test/query_protocol/query_lists_operation_test.dart

Lines changed: 36 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)