Compare commits
2 Commits
b108375ad5
...
6c39e1e574
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6c39e1e574 | ||
|
|
b33260ec23 |
@@ -167,13 +167,6 @@ void main() {
|
||||
expect(match.id, testMatch.id);
|
||||
expect(match.name, testMatch.name);
|
||||
expect(match.createdAt, testMatch.createdAt);
|
||||
if (match.winner != null && testMatch.winner != null) {
|
||||
expect(match.winner!.id, testMatch.winner!.id);
|
||||
expect(match.winner!.name, testMatch.winner!.name);
|
||||
expect(match.winner!.createdAt, testMatch.winner!.createdAt);
|
||||
} else {
|
||||
expect(match.winner, testMatch.winner);
|
||||
}
|
||||
|
||||
// Group-Checks
|
||||
if (testMatch.group != null) {
|
||||
|
||||
@@ -214,8 +214,8 @@ void main() {
|
||||
'Adding the same player to separate matches works correctly',
|
||||
() async {
|
||||
final playersList = [testPlayer1, testPlayer2, testPlayer3];
|
||||
final match1 = Match(name: 'Match 1', players: playersList);
|
||||
final match2 = Match(name: 'Match 2', players: playersList);
|
||||
final match1 = Match(name: 'Match 1', game: testGame, players: playersList);
|
||||
final match2 = Match(name: 'Match 2', game: testGame, players: playersList);
|
||||
|
||||
await Future.wait([
|
||||
database.matchDao.addMatch(match: match1),
|
||||
|
||||
Reference in New Issue
Block a user