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

@@ -68,10 +68,8 @@ void main() {
}
});
// TODO: Use upcoming addGroups() method
test('Adding and fetching a single group works correctly', () async {
await database.groupDao.addGroup(group: testgroup);
await database.groupDao.addGroup(group: testgroup2);
await database.groupDao.addGroups(groups: [testgroup, testgroup2]);
final allGroups = await database.groupDao.getAllGroups();
expect(allGroups.length, 2);