Skip to content

Commit cf51446

Browse files
committed
Update http-server tests to check url param parsing
This is a test for the fix in gren-lang/node#30 released in 5.0.4
1 parent 7acb63a commit cf51446

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

http-server/gren.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dependencies": {
99
"direct": {
1010
"gren-lang/core": "6.0.0",
11-
"gren-lang/node": "5.0.0"
11+
"gren-lang/node": "5.0.4"
1212
},
1313
"indirect": {
1414
"gren-lang/url": "5.0.0"

http-server/test/requests.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ describe("Requests", () => {
3535
assert.equal(res1.headers["content-type"], "text/html");
3636
assert.equal(res1.text, "You posted: some data");
3737

38-
const res2 = await request(url).put("/howdy");
38+
const res2 = await request(url).put("/howdy?with=params");
3939
assert.equal(res2.headers["content-type"], "text/html");
40-
assert.equal(res2.text, "Not found: PUT /howdy");
40+
assert.equal(res2.text, "Not found: PUT http://localhost:3000/howdy?with=params");
4141
});
4242

4343
// Can't actually test this because node:http doesn't support custom methods.

0 commit comments

Comments
 (0)