@@ -5,7 +5,6 @@ import stream from 'node:stream'
55import { promisify } from 'node:util'
66
77import FormData from 'form-data'
8- import hasOwnProperty from 'has-own-property'
98import recursiveNullify from 'recursive-nullify'
109import testData from 'testdata-w3c-json-form'
1110
@@ -72,8 +71,8 @@ describe('body', () => {
7271
7372 await promisify ( parser ) ( req , null )
7473
75- assert . strictEqual ( hasOwnProperty ( req , 'body' ) , false )
76- assert . strictEqual ( hasOwnProperty ( req , 'files' ) , false )
74+ assert . strictEqual ( Object . hasOwn ( req , 'body' ) , false )
75+ assert . strictEqual ( Object . hasOwn ( req , 'files' ) , false )
7776 } )
7877
7978 it ( 'should not process non-multipart GET request' , async ( ) => {
@@ -88,8 +87,8 @@ describe('body', () => {
8887
8988 await promisify ( parser ) ( req , null )
9089
91- assert . strictEqual ( hasOwnProperty ( req , 'body' ) , false )
92- assert . strictEqual ( hasOwnProperty ( req , 'files' ) , false )
90+ assert . strictEqual ( Object . hasOwn ( req , 'body' ) , false )
91+ assert . strictEqual ( Object . hasOwn ( req , 'files' ) , false )
9392 } )
9493
9594 for ( const test of testData ) {
0 commit comments