test(frontend): Student controller
Co-authored-by: Gabriellvl <vanlangenhovefga@gmail.com>
This commit is contained in:
		
							parent
							
								
									61c751c343
								
							
						
					
					
						commit
						cbd214c445
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		
							
								
								
									
										8
									
								
								frontend/tests/controllers/student-controller.test.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								frontend/tests/controllers/student-controller.test.ts
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| import { StudentController } from '../../src/controllers/students'; | ||||
| import { expect, it } from 'vitest'; | ||||
| 
 | ||||
| it('Get students', async () => { | ||||
|     const controller = new StudentController(); | ||||
|     const data = await controller.getAll(true); | ||||
|     expect(data.students).to.have.length.greaterThan(0); | ||||
| }); | ||||
		Reference in a new issue