test: testen voor group repo slagen

This commit is contained in:
Laure Jablonski 2025-03-09 10:11:06 +01:00
parent 0a1bc7c6ea
commit 985050a224

View file

@ -52,19 +52,20 @@ describe('GroupRepository', () => {
expect(groups).toHaveLength(3);
});
// it('should not find removed group', async () => {
// const class_ = await ClassRepository.findById('id02');
// const assignment = await AssignmentRepository.findByClassAndId(
// class_!,
// 1
// );
// await GroupRepository.deleteByAssignmentAndGroupNumber(assignment!, 1);
it('should not find removed group', async () => {
const class_ = await ClassRepository.findById('id02');
const assignment = await AssignmentRepository.findByClassAndId(
class_!,
2
);
// const group = await GroupRepository.findByAssignmentAndGroupNumber(
// assignment!,
// 1
// );
await GroupRepository.deleteByAssignmentAndGroupNumber(assignment!, 1);
// expect(group).toBeNull();
// });
const group = await GroupRepository.findByAssignmentAndGroupNumber(
assignment!,
1
);
expect(group).toBeNull();
});
});