| | |
| | | describe("the function getCourseAdminRoles()", function () { |
| | | it("should return all admin roles for all courses", async function () { |
| | | const res = await db.getCourseAdminRoles() |
| | | // console.table(res) |
| | | // console.log(res) |
| | | expect(res).to.be.a("array") |
| | | for (const item of res) { |
| | | expect(item).to.have.property("crs_obj_id").and.to.be.a("number") |
| | |
| | | describe("the function getCoursesWithoutAdminRoles()", function () { |
| | | it("should return all admin roles for all courses", async function () { |
| | | const res = await db.getCourseWithoutAdminRoles() |
| | | // console.table(res) |
| | | console.log(res) |
| | | expect(res).to.be.a("array") |
| | | for (const item of res) { |
| | | expect(item).to.have.property("crs_obj_id").and.to.be.a("number") |