fix: includes check + gebruik fetches service laag
This commit is contained in:
		
							parent
							
								
									566bb5a5fb
								
							
						
					
					
						commit
						cb4f6a512d
					
				
					 7 changed files with 38 additions and 36 deletions
				
			
		|  | @ -96,7 +96,7 @@ describe('Teacher controllers', () => { | |||
|     }); | ||||
| 
 | ||||
|     it('Teacher list', async () => { | ||||
|         req = { query: { full: 'true' } }; | ||||
|         req = { query: { full: 'false' } }; | ||||
| 
 | ||||
|         await getAllTeachersHandler(req as Request, res as Response); | ||||
| 
 | ||||
|  | @ -104,8 +104,7 @@ describe('Teacher controllers', () => { | |||
| 
 | ||||
|         const result = jsonMock.mock.lastCall?.[0]; | ||||
| 
 | ||||
|         const teacherUsernames = result.teachers.map((s: TeacherDTO) => s.username); | ||||
|         expect(teacherUsernames).toContain('testleerkracht1'); | ||||
|         expect(result.teachers).toContain('testleerkracht1'); | ||||
| 
 | ||||
|         expect(result.teachers).toHaveLength(5); | ||||
|     }); | ||||
|  |  | |||
		Reference in a new issue
	
	 Gabriellvl
						Gabriellvl