From cf514467e229dd50408593f36eb3875fd6073abc Mon Sep 17 00:00:00 2001 From: Justin Blake Date: Sat, 10 May 2025 17:58:54 -0400 Subject: [PATCH] Update http-server tests to check url param parsing This is a test for the fix in https://github.com/gren-lang/node/pull/30 released in 5.0.4 --- http-server/gren.json | 2 +- http-server/test/requests.mjs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/http-server/gren.json b/http-server/gren.json index 1bf06b9..78d10c0 100644 --- a/http-server/gren.json +++ b/http-server/gren.json @@ -8,7 +8,7 @@ "dependencies": { "direct": { "gren-lang/core": "6.0.0", - "gren-lang/node": "5.0.0" + "gren-lang/node": "5.0.4" }, "indirect": { "gren-lang/url": "5.0.0" diff --git a/http-server/test/requests.mjs b/http-server/test/requests.mjs index 0ca8fcc..bf05e17 100644 --- a/http-server/test/requests.mjs +++ b/http-server/test/requests.mjs @@ -35,9 +35,9 @@ describe("Requests", () => { assert.equal(res1.headers["content-type"], "text/html"); assert.equal(res1.text, "You posted: some data"); - const res2 = await request(url).put("/howdy"); + const res2 = await request(url).put("/howdy?with=params"); assert.equal(res2.headers["content-type"], "text/html"); - assert.equal(res2.text, "Not found: PUT /howdy"); + assert.equal(res2.text, "Not found: PUT http://localhost:3000/howdy?with=params"); }); // Can't actually test this because node:http doesn't support custom methods.