Skip to content

Commit 21df79e

Browse files
authored
chore(amplify_flutter): Fix test (#2335)
Fixes failing test due to configuration changes in #2303
1 parent 10c6066 commit 21df79e

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

packages/amplify/amplify_flutter/test/amplify_test.dart

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,19 +106,16 @@ void main() {
106106
});
107107

108108
test(
109-
'configure should result in AmplifyException when invalid value is passed',
109+
'configure should result in ConfigurationError when invalid value is passed',
110110
() async {
111+
expect(
112+
amplify.asyncConfig,
113+
throwsA(isA<ConfigurationError>()),
114+
);
111115
await expectLater(
112116
amplify.configure(invalidConfiguration),
113-
throwsA(
114-
isA<AmplifyException>().having(
115-
(e) => e.underlyingException,
116-
'underlyingException',
117-
isA<FormatException>(),
118-
),
119-
),
117+
throwsA(isA<ConfigurationError>()),
120118
);
121-
expect(amplify.isConfigured, isFalse);
122119
});
123120

124121
test('calling configure twice results in an exception', () async {

0 commit comments

Comments
 (0)