Skip to content

Commit

Permalink
fix(mock): make methods of MockUserFirestore static
Browse files Browse the repository at this point in the history
  • Loading branch information
yoannLafore committed Apr 8, 2024
1 parent 14fec27 commit 0887b80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/models/database/user/mock_user_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "package:proxima/models/database/user/user_id_firestore.dart";

/// Helper class to generate mock user data to be used in tests
class MockUserFirestore {
List<UserData> generateUserData(int count) {
static List<UserData> generateUserData(int count) {
return List.generate(count, (i) {
return UserData(
displayName: "display_name_$i",
Expand All @@ -16,7 +16,7 @@ class MockUserFirestore {
});
}

List<UserFirestore> generateUserFirestore(int count) {
static List<UserFirestore> generateUserFirestore(int count) {
return generateUserData(count).mapIndexed((i, data) {
return UserFirestore(
uid: UserIdFirestore(value: "user_id_$i"),
Expand Down

0 comments on commit 0887b80

Please sign in to comment.