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); expect(groups).toHaveLength(3);
}); });
// it('should not find removed group', async () => { it('should not find removed group', async () => {
// const class_ = await ClassRepository.findById('id02'); const class_ = await ClassRepository.findById('id02');
// const assignment = await AssignmentRepository.findByClassAndId( const assignment = await AssignmentRepository.findByClassAndId(
// class_!, class_!,
// 1 2
// ); );
// await GroupRepository.deleteByAssignmentAndGroupNumber(assignment!, 1);
// const group = await GroupRepository.findByAssignmentAndGroupNumber( await GroupRepository.deleteByAssignmentAndGroupNumber(assignment!, 1);
// assignment!,
// 1
// );
// expect(group).toBeNull(); const group = await GroupRepository.findByAssignmentAndGroupNumber(
// }); assignment!,
1
);
expect(group).toBeNull();
});
}); });