const expect = require("chai").expect
|
|
const libIlias = require("../lib/libIlias")
|
const testData = require("./data")
|
|
/////////////////////////////////////////////////////////////////////////
|
|
// Skipped: the ILIAS PHP component does not implement course creation yet
|
// (php/globus-ilias-rest/login.php -> createKurs() throws "not implemented").
|
// There is also no deleteKurs() for cleanup, so running this test would leave
|
// a real course behind. Enable once both exist.
|
describe("the function createKurs", function () {
|
|
const kurs = testData.kurs
|
|
it.skip("should create a new Kurs in ILIAS", async function () {
|
const res = await libIlias.createKurs(kurs)
|
expect(res).to.have.property("status").and.to.equal("ok")
|
expect(res.command).to.equal("createKurs")
|
expect(res).to.have.property("ref_id").and.to.be.a("number").above(0)
|
})
|
|
})
|
|
/////////////////////////////////////////////////////////////////////////
|