test(frontend): Testen voor leerobject-controllers + opvragen van leerpaden a.d.h.v. admin

This commit is contained in:
Gerald Schmittinger 2025-05-14 23:27:24 +02:00
parent 759282f1c6
commit 694155cc1e
2 changed files with 34 additions and 0 deletions

View file

@ -18,4 +18,10 @@ describe("Test controller learning paths", () => {
const data = await controller.getAllByTheme("kiks");
expect(data).to.have.length.greaterThan(0);
});
it("Can get all learning paths administrated by a certain user.", async () => {
const data = await controller.getAllByAdminRaw("user");
expect(typeof data).toEqual("array");
expect(data.length).toBe(0); // This user does not administrate any learning paths in the test data.
});
});