File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -70,19 +70,6 @@ test('json should ignore GET request', async () => {
70
70
} ) . expect ( 200 , 'GET is ignored' )
71
71
} )
72
72
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
-
86
73
test ( 'should parse urlencoded body' , async ( ) => {
87
74
const server = createServer ( async ( req : ReqWithBody , res ) => {
88
75
await urlencoded ( ) ( req , res , ( err ) => void err && console . log ( err ) )
You can’t perform that action at this time.
0 commit comments