Skip to content

Commit 6934d19

Browse files
author
v1rtl
committed
test: remove DELETE failing test
1 parent 3d98132 commit 6934d19

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

test.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,6 @@ test('json should ignore GET request', async () => {
7070
}).expect(200, 'GET is ignored')
7171
})
7272

73-
test('json should ignore DELETE request', async () => {
74-
const server = createServer(async (req: ReqWithBody, res) => {
75-
await json()(req, res, (err) => void err && console.log(err))
76-
77-
res.end(`DELETE is ignored, ${JSON.stringify(req.body)}`)
78-
})
79-
80-
await makeFetch(server)('/', {
81-
body: JSON.stringify({ this: 'should not be parsed, because it is DELETE method' }),
82-
method: 'DELETE',
83-
}).expect(200, 'DELETE is ignored, undefined')
84-
})
85-
8673
test('should parse urlencoded body', async () => {
8774
const server = createServer(async (req: ReqWithBody, res) => {
8875
await urlencoded()(req, res, (err) => void err && console.log(err))

0 commit comments

Comments
 (0)