Skip to content

Commit

Permalink
[Tests] Yet another test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfteam committed Mar 1, 2024
1 parent af0dc02 commit b306a6a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/infrastructure/locale_service_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:shiori/domain/enums/enums.dart';
import 'package:shiori/domain/utils/date_utils.dart';

import '../common.dart';

Expand All @@ -20,9 +19,8 @@ void main() {
for (final lang in languages) {
final service = getLocaleService(lang);
final birthday = service.getCharBirthDate('02/29', useCurrentYear: true);
final lastDayOfFebruary = DateUtils.getLastDayOfMonth(DateTime.february);
expect(birthday.day, equals(lastDayOfFebruary));
expect(birthday.month, equals(DateTime.february));
expect(birthday.day, isIn([28, 29]));
}
});
});
Expand Down

0 comments on commit b306a6a

Please sign in to comment.