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);