REST Service for POPCORN - ILIAS
alex
7 hours ago 2920ccfa508fe5e8c32905fe102758b65fb37574
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")