Skip to content

Commit

Permalink
[Test] Minor check
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfteam committed Sep 30, 2022
1 parent 051b60f commit 95409d2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/infrastructure/file/character_file_service_test.dart
Expand Up @@ -209,7 +209,12 @@ void main() {
expect(constellation.number, inInclusiveRange(1, 6));
}

expect(detail.stats.where((e) => e.isAnAscension).length == 6, isTrue);
final statAscCount = detail.stats.where((e) => e.isAnAscension).length;
if (!detail.isComingSoon) {
expect(statAscCount == 6, isTrue);
} else {
expect(statAscCount <= 6, isTrue);
}
var repetitionCount = 0;
for (var i = 0; i < detail.stats.length; i++) {
final stat = detail.stats[i];
Expand Down

0 comments on commit 95409d2

Please sign in to comment.