fix(backend): Falende testen gerepareerd.

This commit is contained in:
Gerald Schmittinger 2025-04-08 10:46:26 +02:00
parent fc675710b4
commit ba725f67b2
4 changed files with 13 additions and 24 deletions

View file

@ -33,7 +33,9 @@ describe('AssignmentRepository', () => {
it('should find all by username of the responsible teacher', async () => {
const result = await assignmentRepository.findAllByResponsibleTeacher("FooFighters")
const resultIds = result.map(it => it.id).sort();
const resultIds = result
.map(it => it.id)
.sort((a, b) => (a ?? 0) - (b ?? 0));
expect(resultIds).toEqual([1, 3, 4]);
});