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

@@ -102,11 +102,9 @@ void main() {
});
test('Adding and fetching multiple games works correctly', () async {
// TODO: Use upcoming addGames() method
await database.gameDao.addGame(game: testGame1);
await database.gameDao.addGame(game: testGame2);
await database.gameDao.addGame(game: testGameOnlyGroup);
await database.gameDao.addGame(game: testGameOnlyPlayers);
await database.gameDao.addGames(
games: [testGame1, testGame2, testGameOnlyGroup, testGameOnlyPlayers],
);
final allGames = await database.gameDao.getAllGames();
expect(allGames.length, 4);