REST Service for POPCORN - ILIAS
alex
6 hours ago 6138ffe99d016cc311f250bc1555b5403b8b1216
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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)
   })
 
})
 
/////////////////////////////////////////////////////////////////////////