const expect = require("chai").expect const settings = require("../settings") const libIlias = require("../lib/libIlias") const db = require("../lib/db") const testData = require("./data") ///////////////////////////////////////////////////////////////////////// describe("regarding the Kurs LP", function () { const kurs = testData.kurs // TODO real test let kursId = 32212 beforeEach(async function () { }) afterEach(async function () { }) describe("the function getKursUnterobjektLp", function () { it("should deliver the LP for the Kurs Unterobjekte", async function () { const res = await db.getKursUnterobjektLp(kursId) console.table(res) expect(res).to.be.a("array") for(const item of res) { expect(item).to.have.property("obj_id").and.to.be.a("number") expect(item).to.have.property("item_id").and.to.be.a("number") expect(item).to.have.property("lpmode").and.to.be.a("number") expect(item).to.have.property("item_obj_id").and.to.be.a("number") expect(item).to.have.property("usr_id").and.to.be.a("number") expect(item).to.have.property("status").and.to.be.a("number") expect(item).to.have.property("status_changed").and.to.be.a("date") } }) }) }) /////////////////////////////////////////////////////////////////////////