test(frontend): Testen voor leerobject-controllers + opvragen van leerpaden a.d.h.v. admin
This commit is contained in:
parent
759282f1c6
commit
694155cc1e
2 changed files with 34 additions and 0 deletions
|
@ -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.
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue