Skip to content

Commit fc0ef5a

Browse files
committed
Update http-server tests to check url param parsing
This fails on 5.0.3 but will pass when gren-lang/node#30 is released.
1 parent 7acb63a commit fc0ef5a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)