test(frontend): Student controller

Co-authored-by: Gabriellvl <vanlangenhovefga@gmail.com>
This commit is contained in:
Tibo De Peuter 2025-04-16 22:02:35 +02:00
parent 61c751c343
commit cbd214c445
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

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