| | |
| | | |
| | | const udfDef = await db.getUdf() |
| | | const udfMap = _.keyBy(udfDef, "field_name") |
| | | // console.dir(udfMap, {depth: null, colors: true, maxArrayLength: null}) |
| | | user.udf = _.mapKeys(user.udf, function (value, key) { |
| | | return udfMap[key].field_id |
| | | }) |
| | |
| | | |
| | | ///////////////////////////////////////////////////////////////////////// |
| | | |
| | | describe("the function deleteTeilnahme", function () { |
| | | // todo in libIlias.js ist deleteTeilnahmer auskommentiert - deshalb funktioniert dieser Test auch nicht |
| | | describe.skip("the function deleteTeilnahme", function () { |
| | | |
| | | it("should delete the Teilnahme of a user", async function () { |
| | | const ref_id = 150 |
| | |
| | | |
| | | it("should import a new user to ILIAS", async function () { |
| | | const res = await libIlias.importIliasUser(user) |
| | | console.dir(res, {depth: null}) |
| | | // console.dir(res, {depth: null}) |
| | | expect(res).to.have.property("status").and.to.equal("ok") |
| | | expect(res.command).to.equal("importUser") |
| | | expect(res.usr_id).to.be.a("number").above(0) |