From 5f55da987c9dae9172bfb7b33fc6444e8bb223cb Mon Sep 17 00:00:00 2001 From: Laure Jablonski Date: Mon, 10 Mar 2025 19:39:56 +0100 Subject: [PATCH] test: teruggeven assignments zijn de juiste --- backend/tests/data/assignments.test.ts | 1 + backend/tests/data/questions.test.ts | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/tests/data/assignments.test.ts b/backend/tests/data/assignments.test.ts index 6ca520d8..1048ce95 100644 --- a/backend/tests/data/assignments.test.ts +++ b/backend/tests/data/assignments.test.ts @@ -35,6 +35,7 @@ describe('AssignmentRepository', () => { expect(assignments).toBeTruthy(); expect(assignments).toHaveLength(1); + expect(assignments[0].title).toBe('tool'); }); it('should not find removed assignment', async () => { diff --git a/backend/tests/data/questions.test.ts b/backend/tests/data/questions.test.ts index a516a97b..0060b996 100644 --- a/backend/tests/data/questions.test.ts +++ b/backend/tests/data/questions.test.ts @@ -35,14 +35,14 @@ describe('QuestionRepository', () => { // it('should create new question', async () => { // const id = new LearningObjectIdentifier('id03', Language.English, '1'); - // const student = await StudentRepository.findByUsername('Noordkaap'); - // await QuestionRepository.createQuestion({ + // const student = await studentRepository.findByUsername('Noordkaap'); + // await questionRepository.createQuestion({ // loId: id, // author: student!, // content: 'question?', // }); // const question = - // await QuestionRepository.findAllQuestionsAboutLearningObject(id); + // await questionRepository.findAllQuestionsAboutLearningObject(id); // expect(question).toBeTruthy(); // expect(question).toHaveLength(1);