refactor: verander getters frontend naar hardcoded

This commit is contained in:
Gabriellvl 2025-05-04 14:16:20 +02:00
parent ac4ece29c7
commit 16a11d4268
3 changed files with 3 additions and 6 deletions

View file

@ -1,12 +1,11 @@
import { describe, it, expect, beforeEach } from "vitest";
import { AssignmentController } from "../../src/controllers/assignments";
import {getClass01} from "@dwengo-1/backend/tests/test_assets/classes/classes.testdata";
describe("AssignmentController Tests", () => {
let controller: AssignmentController;
beforeEach(() => {
controller = new AssignmentController(getClass01().classId); // Example class ID
controller = new AssignmentController( 'X2J9QT'); // Example class ID (class01)
});
it("should fetch all assignments", async () => {