Skip to content

Commit a21acde

Browse files
committed
test: update ar-locale credentials test for intl 0.20.x ASCII numerals
1 parent 9a18158 commit a21acde

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

auth0_flutter_platform_interface/test/credentials_test.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@ void main() {
3030
);
3131
});
3232

33-
test('Credentials throws when expiresAt Locale set to ar', () async {
33+
test('Credentials does not throw when expiresAt Locale set to ar',
34+
() async {
35+
initializeDateFormatting();
3436
final dateTime = DateTime(2022);
3537
final isoDateTimeString = _formatISOTime(dateTime, 'ar');
3638

3739
expect(
38-
() => Credentials.fromMap({
40+
Credentials.fromMap({
3941
'accessToken': 'accessToken',
4042
'idToken': 'idToken',
4143
'refreshToken': 'refreshToken',
@@ -44,7 +46,7 @@ void main() {
4446
'userProfile': {'sub': '123', 'name': 'John Doe'},
4547
'tokenType': 'Bearer',
4648
}),
47-
throwsA(isA<FormatException>()),
49+
isA<Credentials>(),
4850
);
4951
});
5052

0 commit comments

Comments
 (0)