File tree Expand file tree Collapse file tree 1 file changed +1
-27
lines changed
packages/auth/amplify_auth_cognito_test/test/state Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Original file line number Diff line number Diff line change @@ -60,33 +60,7 @@ void main() {
60
60
emitsInOrder (< Matcher > [
61
61
isA <AuthNotConfigured >(),
62
62
isA <AuthConfiguring >(),
63
- isA <AuthFailure >(),
64
- ]),
65
- );
66
-
67
- await stateMachine.close ();
68
- });
69
-
70
- test ('retry configure succeeds' , () async {
71
- final authStateMachine = stateMachine.getOrCreate (AuthStateMachine .type);
72
-
73
- stateMachine.dispatch (const AuthEvent .configure (badConfig));
74
- await expectLater (
75
- authStateMachine.stream.startWith (authStateMachine.currentState),
76
- emitsInOrder (< Matcher > [
77
- isA <AuthNotConfigured >(),
78
- isA <AuthConfiguring >(),
79
- isA <AuthFailure >(),
80
- ]),
81
- );
82
-
83
- stateMachine.dispatch (AuthEvent .configure (mockConfig));
84
- await expectLater (
85
- authStateMachine.stream.startWith (authStateMachine.currentState),
86
- emitsInOrder (< Matcher > [
87
- isA <AuthFailure >(),
88
- isA <AuthConfiguring >(),
89
- isA <AuthConfigured >(),
63
+ emitsError (isA <ConfigurationError >()),
90
64
]),
91
65
);
92
66
You can’t perform that action at this time.
0 commit comments