Added batch insert methods to tests
Some checks failed
Pull Request Pipeline / test (pull_request) Failing after 2m9s
Pull Request Pipeline / lint (pull_request) Successful in 2m9s

This commit is contained in:
2025-11-21 14:01:45 +01:00
parent 78d530ddd5
commit 51722eb7fd
3 changed files with 9 additions and 15 deletions

View File

@@ -56,11 +56,9 @@ void main() {
});
test('Adding and fetching multiple players works correclty', () async {
// TODO: Use upcoming addPlayers() method
await database.playerDao.addPlayer(player: testPlayer1);
await database.playerDao.addPlayer(player: testPlayer2);
await database.playerDao.addPlayer(player: testPlayer3);
await database.playerDao.addPlayer(player: testPlayer4);
await database.playerDao.addPlayers(
players: [testPlayer1, testPlayer2, testPlayer3, testPlayer4],
);
final allPlayers = await database.playerDao.getAllPlayers();
expect(allPlayers.length, 4);