feat: testen voor assignment controller geimplementeerd

This commit is contained in:
Adriaan Jacquet 2025-03-23 20:49:09 +01:00
parent 58bfa90474
commit dbe7807f4a
3 changed files with 97 additions and 19 deletions

View file

@ -4,11 +4,6 @@ import { createClassHandler, getAllClassesHandler, getClassHandler, getClassStud
import { Request, Response } from 'express';
import { getAllClasses } from '../../src/services/class.js';
async function fetchClass(id: string) {
const data = await fetch(`localhost:3000/class/${id}`);
return data;
}
describe('Class controllers', () => {
let req: Partial<Request>;
let res: Partial<Response>;
@ -156,4 +151,4 @@ describe('Class controllers', () => {
expect("classes" in result).toBeTruthy();
})
})
})