From 2920ccfa508fe5e8c32905fe102758b65fb37574 Mon Sep 17 00:00:00 2001
From: alex <alex@alexloehr.net>
Date: Thu, 08 Oct 2026 16:42:29 +0000
Subject: [PATCH] GS-2555

---
 test/testCourseAdmins.js   |    4 ----
 test/testApiPing.js        |    3 ---
 test/testCreateKurs.js     |    2 +-
 test/testApiKursOffline.js |    6 ------
 4 files changed, 1 insertions(+), 14 deletions(-)

diff --git a/test/testApiKursOffline.js b/test/testApiKursOffline.js
index 87f9d27..ca15414 100644
--- a/test/testApiKursOffline.js
+++ b/test/testApiKursOffline.js
@@ -19,7 +19,6 @@
 
         it("should return the offline or online status of a kurs", async function () {
             const url = getUrl(ref_id)
-            console.log(url)
             const res = await fetch(url, {
                 method: "GET",
                 // body: JSON.stringify(body),
@@ -27,9 +26,7 @@
                     'Content-Type': 'application/json', // Indicate JSON data
                 },
             })
-            // console.log(res)
             const data = await res.json()
-            console.log(data)
 
             expect(data).to.be.a("object").and.to.have.property("offline")
         })
@@ -40,7 +37,6 @@
 
         it("should set the offline or online status of a kurs", async function () {
             const url = getUrl(ref_id)
-            console.log(url)
             const body = {offline: 0}
             const res = await fetch(url, {
                 method: "POST",
@@ -49,9 +45,7 @@
                     'Content-Type': 'application/json', // Indicate JSON data
                 },
             })
-            // console.log(res)
             const data = await res.json()
-            console.log(data)
             expect(data).to.be.a("object").and.to.have.property("offline")
         })
 
diff --git a/test/testApiPing.js b/test/testApiPing.js
index 21c4dca..552f48d 100644
--- a/test/testApiPing.js
+++ b/test/testApiPing.js
@@ -16,16 +16,13 @@
 
         it("should return an answer from php component", async function () {
             const url = getUrl(ref_id)
-            console.log(url)
             const res = await fetch(url, {
                 method: "GET",
-                // body: JSON.stringify({}),
                 headers: {
                     'Content-Type': 'application/json', // Indicate JSON data
                 },
             })
             const data = await res.json()
-            // console.log(data)
 
             expect(data).to.be.a("object")
             expect(data.status).to.equal("ok")
diff --git a/test/testCourseAdmins.js b/test/testCourseAdmins.js
index 478c733..6bb6ad5 100644
--- a/test/testCourseAdmins.js
+++ b/test/testCourseAdmins.js
@@ -19,8 +19,6 @@
    describe("the function getCourseAdminRoles()", function () {
       it("should return all admin roles for all courses", async function () {
          const res = await db.getCourseAdminRoles()
-         // console.table(res)
-         // console.log(res)
          expect(res).to.be.a("array")
          for (const item of res) {
             expect(item).to.have.property("crs_obj_id").and.to.be.a("number")
@@ -35,8 +33,6 @@
    describe("the function getCoursesWithoutAdminRoles()", function () {
       it("should return all admin roles for all courses", async function () {
          const res = await db.getCourseWithoutAdminRoles()
-         // console.table(res)
-         console.log(res)
          expect(res).to.be.a("array")
          for (const item of res) {
             expect(item).to.have.property("crs_obj_id").and.to.be.a("number")
diff --git a/test/testCreateKurs.js b/test/testCreateKurs.js
index 755f244..3d1fbb6 100644
--- a/test/testCreateKurs.js
+++ b/test/testCreateKurs.js
@@ -18,7 +18,7 @@
    afterEach(async function () {
    })
 
-   it("should create a new Kurs in ILIAS", async function () {
+   it.skip("should create a new Kurs in ILIAS", async function () {
       console.log("++createKurs", kurs)
       const res = await libIlias.createKurs(kurs)
       console.dir(res, {depth: null})

--
Gitblit v1.8.0