Skip to content

Commit

Permalink
Adjust more GET cases
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Jun 12, 2024
1 parent f48d35d commit eb18f87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test('basic', async function (t) {

server.on('request', function (req, res) {
t.ok(req)
t.is(req.method, 'GET')
t.is(req.method, 'POST')
t.is(req.url, '/something/?key1=value1&key2=value2&enabled')
t.is(req.headers.host, server.address().address + ':' + server.address().port)
t.ok(req.socket)
Expand Down Expand Up @@ -61,7 +61,7 @@ test('basic', async function (t) {
await waitForServer(server)

const reply = await request({
method: 'GET',
method: 'POST',
host: server.address().address,
port: server.address().port,
path: '/something/?key1=value1&key2=value2&enabled',
Expand Down Expand Up @@ -154,7 +154,7 @@ test('destroy response', async function (t) {
await waitForServer(server)

const reply = await request({
method: 'GET',
method: 'POST',
host: server.address().address,
port: server.address().port,
path: '/'
Expand Down

0 comments on commit eb18f87

Please sign in to comment.