Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
feat: adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alestiago committed Mar 10, 2024
1 parent a6b1bae commit d69dc1d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class GameState extends Equatable {
this.pausedDuration = Duration.zero,
this.startedAt,
this.pausedAt,
this.score = -1,
this.score,
this.lostReason,
}) :
// TODO(alestiago): Remove magic string.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ void main() {
expect(rating, ScoreRating.none);
},
);

test(
'''returns ScoreRating.none when score is null''',
() {
final rating = ScoreRating.fromSteps(score: null, steps: (1, 2, 3));
expect(rating, ScoreRating.none);
},
);
});
});
}

0 comments on commit d69dc1d

Please sign in to comment.