Skip to content

Commit

Permalink
Make rated a private property
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudyDino authored and veloce committed Feb 20, 2025
1 parent f1bfa73 commit 257d474
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/view/puzzle/puzzle_screen_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ class MockPuzzleBatchStorage extends Mock implements PuzzleBatchStorage {}
class MockPuzzleStorage extends Mock implements PuzzleStorage {}

class MockPuzzlePreferences extends PuzzlePreferences with Mock {
MockPuzzlePreferences(this.rated);
MockPuzzlePreferences(this._rated);

final bool rated;
final bool _rated;

@override
PuzzlePrefs build() {
return PuzzlePrefs(
id: fakeSession.user.id,
difficulty: PuzzleDifficulty.normal,
autoNext: false,
rated: rated,
rated: _rated,
);
}
}
Expand Down

0 comments on commit 257d474

Please sign in to comment.