Refactoring
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 45s
Pull Request Pipeline / lint (pull_request) Successful in 47s

This commit is contained in:
2026-05-02 01:31:49 +02:00
parent 9e4f44491c
commit 5789650c97
16 changed files with 83 additions and 83 deletions

View File

@@ -211,7 +211,7 @@ void main() {
const newName = 'New name';
await database.groupDao.updateGroupName(
groupId: testGroup1.id,
newName: newName,
name: newName,
);
final result = await database.groupDao.getGroupById(
@@ -223,7 +223,7 @@ void main() {
test('updateGroupName() returns false for non-existent group', () async {
final updated = await database.groupDao.updateGroupName(
groupId: 'non-existent-id',
newName: 'New name',
name: 'New name',
);
expect(updated, isFalse);
});
@@ -234,7 +234,7 @@ void main() {
const newDescription = 'New description';
final updated = await database.groupDao.updateGroupDescription(
groupId: testGroup1.id,
newDescription: newDescription,
description: newDescription,
);
expect(updated, isTrue);
@@ -249,7 +249,7 @@ void main() {
() async {
final updated = await database.groupDao.updateGroupDescription(
groupId: 'non-existent-id',
newDescription: 'New description',
description: 'New description',
);
expect(updated, isFalse);
},
@@ -262,11 +262,11 @@ void main() {
await database.groupDao.updateGroupName(
groupId: testGroup1.id,
newName: newName,
name: newName,
);
await database.groupDao.updateGroupDescription(
groupId: testGroup1.id,
newDescription: newDescription,
description: newDescription,
);
final updatedGroup = await database.groupDao.getGroupById(