| | |
| | | let lastUserId = null |
| | | const user = { |
| | | // Action: "Insert", |
| | | login: "affoReloaded", |
| | | passwd: "test1234", |
| | | login: "123456789", |
| | | passwd: "123456789", |
| | | passwd_type: "plain", |
| | | firstname: "Adolfo", |
| | | lastname: "de la Cruz", |
| | |
| | | } |
| | | |
| | | afterEach(async function () { |
| | | await deleteUser(lastUserId) |
| | | // await deleteUser(lastUserId) |
| | | }) |
| | | |
| | | it("should import a new user to ILIAS", async function () { |
| | |
| | | lastUserId = usr_id |
| | | const user2 = await db.getUserByUserId(usr_id) |
| | | console.log(user2) |
| | | expect(user2).to.have.property("login").and.to.equal("affoReloaded") |
| | | expect(user2).to.have.property("login").and.to.equal(user.login) |
| | | expect(user2).to.have.property("usr_id").and.to.equal(res.usr_id) |
| | | |
| | | // const res2 = await libIlias.deleteUser(usr_id) |