test(frontend): Coverage verbeteren
This commit is contained in:
parent
c47da0c826
commit
4a6b6ee061
10 changed files with 387 additions and 16 deletions
13
frontend/tests/controllers/groups.controller.test.ts
Normal file
13
frontend/tests/controllers/groups.controller.test.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { describe, expect, it } from 'vitest';
|
||||
import { GroupController } from '../../src/controllers/groups';
|
||||
|
||||
describe('Test controller groups', () => {
|
||||
it('Get groups', async () => {
|
||||
const classId = '8764b861-90a6-42e5-9732-c0d9eb2f55f9';
|
||||
const assignmentNumber = 21000;
|
||||
|
||||
const controller = new GroupController(classId, assignmentNumber);
|
||||
const data = await controller.getAll(true);
|
||||
expect(data.groups).to.have.length.greaterThan(0);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue