REST Service for POPCORN - ILIAS
alex
5 hours ago 24e2d3d3400dcdc84cd4659d2710e83e97a5700c
adding route /api/ping
1 files modified
5 ■■■■■ changed files
test/testApiPing.js 5 ●●●●● patch | view | raw | blame | history
test/testApiPing.js
@@ -19,14 +19,13 @@
            console.log(url)
            const res = await fetch(url, {
                method: "GET",
                body: JSON.stringify({}),
                // body: JSON.stringify({}),
                headers: {
                    'Content-Type': 'application/json', // Indicate JSON data
                },
            })
            // console.log(res)
            const data = await res.json()
            console.log(data)
            // console.log(data)
            expect(data).to.be.a("object")
            expect(data.status).to.equal("ok")