Skip to content

Commit

Permalink
querystring.js: JSLint warnings fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kassens authored and ry committed Jul 19, 2010
1 parent c7e0c64 commit f18d9d8
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions test/simple/test-querystring.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
common = require("../common");
assert = common.assert
assert = common.assert;

// test using assert

Expand Down Expand Up @@ -107,15 +107,18 @@ qsNoMungeTestCases.forEach(function (testCase) {
});

// test the nested qs-in-qs case
var f = qs.parse("a=b&q=x%3Dy%26y%3Dz");
f.q = qs.parse(f.q);
assert.deepEqual(f, { a : "b", q : { x : "y", y : "z" } });
(function(){
var f = qs.parse("a=b&q=x%3Dy%26y%3Dz");
f.q = qs.parse(f.q);
assert.deepEqual(f, { a : "b", q : { x : "y", y : "z" } });
})();

// nested in colon
var f = qs.parse("a:b;q:x%3Ay%3By%3Az", ";", ":");
f.q = qs.parse(f.q, ";", ":");
assert.deepEqual(f, { a : "b", q : { x : "y", y : "z" } });

(function(){
var f = qs.parse("a:b;q:x%3Ay%3By%3Az", ";", ":");
f.q = qs.parse(f.q, ";", ":");
assert.deepEqual(f, { a : "b", q : { x : "y", y : "z" } });
})();

// now test stringifying
assert.throws(function () {
Expand Down

0 comments on commit f18d9d8

Please sign in to comment.