From 6138ffe99d016cc311f250bc1555b5403b8b1216 Mon Sep 17 00:00:00 2001
From: alex <alex@alexloehr.net>
Date: Thu, 08 Oct 2026 17:18:04 +0000
Subject: [PATCH] GS-2555
---
test/testApiPing.js | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/test/testApiPing.js b/test/testApiPing.js
index 06670ed..552f48d 100644
--- a/test/testApiPing.js
+++ b/test/testApiPing.js
@@ -12,21 +12,17 @@
describe("using the API", function () {
- describe("the Route POST /api/ping", function () {
+ describe("the Route GET /api/ping", function () {
it("should return an answer from php component", async function () {
const url = getUrl(ref_id)
- console.log(url)
const res = await fetch(url, {
- method: "POST",
- body: JSON.stringify({}),
+ method: "GET",
headers: {
'Content-Type': 'application/json', // Indicate JSON data
},
})
- // console.log(res)
const data = await res.json()
- console.log(data)
expect(data).to.be.a("object")
expect(data.status).to.equal("ok")
--
Gitblit v1.8.0