Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added test with failing right-hand brackets
  • Loading branch information
tj committed Feb 8, 2011
1 parent 4bcae08 commit 2f200f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/querystring.test.js
Expand Up @@ -80,6 +80,11 @@ module.exports = {
.should.eql({ user: { names: ['tj', 'tyler'], email: 'tj@vision-media.ca' }});
},

'test right-hand brackets': function(){
qs.parse('pets=["tobi"]')
.should.eql({ pets: '["tobi"]' });
},

// 'test complex': function(){
// qs.parse('users[][name][first]=tj&users[foo]=bar')
// .should.eql({
Expand Down

0 comments on commit 2f200f2

Please sign in to comment.