getAllGames returnt nicht alle Attribute von der game Klasse #45
@@ -66,7 +66,7 @@ void main() {
|
|||||||
expect(allPlayers.length, 4);
|
expect(allPlayers.length, 4);
|
||||||
|
|
||||||
// Map for connencting fetched players with expected players
|
// Map for connencting fetched players with expected players
|
||||||
final testPlayer = {
|
final testPlayers = {
|
||||||
testPlayer1.id: testPlayer1,
|
testPlayer1.id: testPlayer1,
|
||||||
testPlayer2.id: testPlayer2,
|
testPlayer2.id: testPlayer2,
|
||||||
testPlayer3.id: testPlayer3,
|
testPlayer3.id: testPlayer3,
|
||||||
@@ -74,11 +74,11 @@ void main() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
for (final player in allPlayers) {
|
for (final player in allPlayers) {
|
||||||
final expectedPlayer = testPlayer[player.id]!;
|
final testPlayer = testPlayers[player.id]!;
|
||||||
|
|
||||||
expect(player.id, expectedPlayer.id);
|
expect(player.id, testPlayer.id);
|
||||||
expect(player.name, expectedPlayer.name);
|
expect(player.name, testPlayer.name);
|
||||||
expect(player.createdAt, expectedPlayer.createdAt);
|
expect(player.createdAt, testPlayer.createdAt);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user