Browse files

misc

  • Loading branch information...
1 parent e508a40 commit 443152def4916d9e42e32aa779d417ab20e82673 @tj tj committed Nov 17, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 test/bodyParser.js
View
6 test/bodyParser.js
@@ -88,9 +88,13 @@ describe('connect.bodyParser()', function(){
.write('Content-Disposition: form-data; name="user[age]"\r\n')
.write('\r\n')
.write('1')
+ .write('\r\n--foo\r\n')
+ .write('Content-Disposition: form-data; name="species"\r\n')
+ .write('\r\n')
+ .write('ferret')
.write('\r\n--foo--')
.end(function(res){
- res.body.should.equal('{"user":{"name":"tobi","age":"1"}}');
+ res.body.should.equal('{"user":{"name":"tobi","age":"1"},"species":"ferret"}');
done();
});
})

0 comments on commit 443152d

Please sign in to comment.