File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
packages/amplify/amplify_flutter/test Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -106,19 +106,16 @@ void main() {
106
106
});
107
107
108
108
test (
109
- 'configure should result in AmplifyException when invalid value is passed' ,
109
+ 'configure should result in ConfigurationError when invalid value is passed' ,
110
110
() async {
111
+ expect (
112
+ amplify.asyncConfig,
113
+ throwsA (isA <ConfigurationError >()),
114
+ );
111
115
await expectLater (
112
116
amplify.configure (invalidConfiguration),
113
- throwsA (
114
- isA <AmplifyException >().having (
115
- (e) => e.underlyingException,
116
- 'underlyingException' ,
117
- isA <FormatException >(),
118
- ),
119
- ),
117
+ throwsA (isA <ConfigurationError >()),
120
118
);
121
- expect (amplify.isConfigured, isFalse);
122
119
});
123
120
124
121
test ('calling configure twice results in an exception' , () async {
You can’t perform that action at this time.
0 commit comments