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")