diff --git a/auth0_flutter_platform_interface/pubspec.yaml b/auth0_flutter_platform_interface/pubspec.yaml index 9ad1e8aba..910456e2a 100644 --- a/auth0_flutter_platform_interface/pubspec.yaml +++ b/auth0_flutter_platform_interface/pubspec.yaml @@ -19,7 +19,7 @@ dev_dependencies: flutter_lints: ^2.0.1 flutter_test: sdk: flutter - intl: ^0.18.0 + intl: ">=0.18.0 <0.21.0" mockito: ^5.1.0 # For information on the generic Dart part of this file, see the diff --git a/auth0_flutter_platform_interface/test/credentials_test.dart b/auth0_flutter_platform_interface/test/credentials_test.dart index b167e9860..875109cab 100644 --- a/auth0_flutter_platform_interface/test/credentials_test.dart +++ b/auth0_flutter_platform_interface/test/credentials_test.dart @@ -30,12 +30,14 @@ void main() { ); }); - test('Credentials throws when expiresAt Locale set to ar', () async { + test('Credentials does not throw when expiresAt Locale set to ar', + () async { + initializeDateFormatting(); final dateTime = DateTime(2022); final isoDateTimeString = _formatISOTime(dateTime, 'ar'); expect( - () => Credentials.fromMap({ + Credentials.fromMap({ 'accessToken': 'accessToken', 'idToken': 'idToken', 'refreshToken': 'refreshToken', @@ -44,7 +46,7 @@ void main() { 'userProfile': {'sub': '123', 'name': 'John Doe'}, 'tokenType': 'Bearer', }), - throwsA(isA()), + isA(), ); });