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

@ -108,7 +108,7 @@ describe('QuestionRepository', () => {
});
});
function sortQuestions(questions: Question[]) {
function sortQuestions(questions: Question[]): void {
questions.sort((a, b) => {
if (a.learningObjectHruid < b.learningObjectHruid) {return -1}
else if (a.learningObjectHruid > b.learningObjectHruid) {return 1}