test: teruggeven assignments zijn de juiste

This commit is contained in:
Laure Jablonski 2025-03-10 19:39:56 +01:00
parent 946c233a52
commit 5f55da987c
2 changed files with 4 additions and 3 deletions

View file

@ -35,6 +35,7 @@ describe('AssignmentRepository', () => {
expect(assignments).toBeTruthy(); expect(assignments).toBeTruthy();
expect(assignments).toHaveLength(1); expect(assignments).toHaveLength(1);
expect(assignments[0].title).toBe('tool');
}); });
it('should not find removed assignment', async () => { it('should not find removed assignment', async () => {

View file

@ -35,14 +35,14 @@ describe('QuestionRepository', () => {
// it('should create new question', async () => { // it('should create new question', async () => {
// const id = new LearningObjectIdentifier('id03', Language.English, '1'); // const id = new LearningObjectIdentifier('id03', Language.English, '1');
// const student = await StudentRepository.findByUsername('Noordkaap'); // const student = await studentRepository.findByUsername('Noordkaap');
// await QuestionRepository.createQuestion({ // await questionRepository.createQuestion({
// loId: id, // loId: id,
// author: student!, // author: student!,
// content: 'question?', // content: 'question?',
// }); // });
// const question = // const question =
// await QuestionRepository.findAllQuestionsAboutLearningObject(id); // await questionRepository.findAllQuestionsAboutLearningObject(id);
// expect(question).toBeTruthy(); // expect(question).toBeTruthy();
// expect(question).toHaveLength(1); // expect(question).toHaveLength(1);