const expect = require("chai").expect
|
|
const settings = require("../settings")
|
const libIlias = require("../lib/libIlias")
|
const db = require("../lib/db")
|
const testData = require("./data")
|
|
/////////////////////////////////////////////////////////////////////////
|
|
describe("the function anmelden", function () {
|
|
const kurs = testData.kurs // TODO
|
let kursId = 31938
|
|
beforeEach(async function () {
|
})
|
|
afterEach(async function () {
|
})
|
|
it("should create a new Kurs in ILIAS", async function () {
|
console.log("++createKurs", kurs)
|
const res = await libIlias.createKurs(kurs)
|
console.dir(res, {depth: null})
|
// expect(res).to.have.property("status").and.to.equal("ok")
|
// expect(res.command).to.equal("anmelden")
|
// expect(res.method).to.equal("POST")
|
})
|
|
})
|
|
/////////////////////////////////////////////////////////////////////////
|