Added methods for multiple inserts to tests
Some checks failed
Pull Request Pipeline / test (pull_request) Failing after 2m6s
Pull Request Pipeline / lint (pull_request) Successful in 2m6s

This commit is contained in:
2025-11-20 23:49:57 +01:00
parent e512cbbf95
commit 8e63a01705
3 changed files with 3 additions and 9 deletions

View File

@@ -94,10 +94,8 @@ void main() {
}
});
// TODO: Use upcoming addGames() method
test('Adding and fetching multiple games works correclty', () async {
await database.gameDao.addGame(game: testgame);
await database.gameDao.addGame(game: testgame2);
await database.gameDao.addGames(games: [testgame, testgame2]);
final allGames = await database.gameDao.getAllGames();
expect(allGames.length, 2);