Refactored tests in own files
Some checks failed
Pull Request Pipeline / test (pull_request) Failing after 2m5s
Pull Request Pipeline / lint (pull_request) Successful in 2m5s

This commit is contained in:
2025-11-21 01:05:35 +01:00
parent b21ca54672
commit 961c6bb679
7 changed files with 394 additions and 159 deletions

View File

@@ -23,7 +23,7 @@ void main() {
withClock(fakeClock, () {
testPlayer = Player(name: 'Test Player');
testPlayer2 = Player(name: 'Second Group');
testPlayer2 = Player(name: 'Second Player');
});
});
tearDown(() async {
@@ -52,6 +52,7 @@ void main() {
});
// TODO: Use upcoming addPlayers() method
// TODO: An Tests in Game orientieren
test('Adding and fetching multiple players works correclty', () async {
await database.playerDao.addPlayer(player: testPlayer);
await database.playerDao.addPlayer(player: testPlayer2);