test: teruggeven assignments zijn de juiste
This commit is contained in:
		
							parent
							
								
									946c233a52
								
							
						
					
					
						commit
						5f55da987c
					
				
					 2 changed files with 4 additions and 3 deletions
				
			
		|  | @ -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 () => { | ||||||
|  |  | ||||||
|  | @ -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);
 | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Laure Jablonski
						Laure Jablonski