feat: testen voor assignment controller geimplementeerd
This commit is contained in:
parent
58bfa90474
commit
dbe7807f4a
3 changed files with 97 additions and 19 deletions
|
@ -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();
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue