Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion auth0_flutter_platform_interface/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions auth0_flutter_platform_interface/test/credentials_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -44,7 +46,7 @@ void main() {
'userProfile': {'sub': '123', 'name': 'John Doe'},
'tokenType': 'Bearer',
}),
throwsA(isA<FormatException>()),
isA<Credentials>(),
);
});

Expand Down
Loading