@@ -166,7 +166,7 @@ describe('bodyParser.urlencoded()', function () {
166
166
. post ( '/' )
167
167
. set ( 'Content-Type' , 'application/x-www-form-urlencoded' )
168
168
. send ( 'user[name][first]=Tobi' )
169
- . expect ( 200 , '{"user":{" name":{" first":"Tobi"}} }' , done )
169
+ . expect ( 200 , '{"user[ name][ first] ":"Tobi"}' , done )
170
170
} )
171
171
172
172
describe ( 'with extended option' , function ( ) {
@@ -180,7 +180,7 @@ describe('bodyParser.urlencoded()', function () {
180
180
. post ( '/' )
181
181
. set ( 'Content-Type' , 'application/x-www-form-urlencoded' )
182
182
. send ( 'user[name][first]=Tobi' )
183
- . expect ( 200 , '{"user":{" name":{" first":"Tobi"}} }' , done )
183
+ . expect ( 200 , '{"user[ name][ first] ":"Tobi"}' , done )
184
184
} )
185
185
186
186
it ( 'should parse multiple key instances' , function ( done ) {
@@ -295,7 +295,7 @@ describe('bodyParser.urlencoded()', function () {
295
295
296
296
describe ( 'with depth option' , function ( ) {
297
297
describe ( 'when custom value set' , function ( ) {
298
- it ( 'should reject non possitive numbers' , function ( ) {
298
+ it ( 'should reject non positive numbers' , function ( ) {
299
299
assert . throws ( createServer . bind ( null , { extended : true , depth : - 1 } ) ,
300
300
/ T y p e E r r o r : o p t i o n d e p t h m u s t b e a z e r o o r a p o s i t i v e n u m b e r / )
301
301
assert . throws ( createServer . bind ( null , { extended : true , depth : NaN } ) ,
@@ -325,7 +325,7 @@ describe('bodyParser.urlencoded()', function () {
325
325
326
326
describe ( 'when default value' , function ( ) {
327
327
before ( function ( ) {
328
- this . server = createServer ( { } )
328
+ this . server = createServer ( { extended : true } )
329
329
} )
330
330
331
331
it ( 'should parse deeply nested objects' , function ( done ) {
0 commit comments