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, expect, it } from "vitest";
import { SubmissionController } from "../../src/controllers/submissions";
import { Language } from "../../src/data-objects/language";
import {getClass01} from "@dwengo-1/backend/tests/test_assets/classes/classes.testdata";
describe("Test controller submissions", () => {
it("Get submission by number", async () => {
const hruid = "id03";
const classId = getClass01().classId;
const classId = 'X2J9QT'; // class01
const controller = new SubmissionController(hruid);
const data = await controller.getByNumber(Language.English, 1, classId, 1, 1, 1);