aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/serialize.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-04-09 11:45:09 -0400
committerTimmy Willison <timmywillisn@gmail.com>2013-04-09 11:59:31 -0400
commit0fa52c11cbfe70780648b99717f1dd3502befaff (patch)
tree9cd6bfc3b17ae21385aeebd32205d7281934fa17 /test/unit/serialize.js
parent0afc92bd73a61a0279a419647458e6ed89638ae0 (diff)
downloadjquery-0fa52c11cbfe70780648b99717f1dd3502befaff.tar.gz
jquery-0fa52c11cbfe70780648b99717f1dd3502befaff.zip
Update jshintrc to conform to new style guide. Conform to onevar and unused in tests. Fixes #13755.
Diffstat (limited to 'test/unit/serialize.js')
-rw-r--r--test/unit/serialize.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unit/serialize.js b/test/unit/serialize.js
index 63607a323..39e7d777e 100644
--- a/test/unit/serialize.js
+++ b/test/unit/serialize.js
@@ -3,9 +3,11 @@ module("serialize", { teardown: moduleTeardown });
test("jQuery.param()", function() {
expect(22);
+ var params, settings;
+
equal( !( jQuery.ajaxSettings && jQuery.ajaxSettings.traditional ), true, "traditional flag, falsy by default" );
- var params = {"foo":"bar", "baz":42, "quux":"All your base are belong to us"};
+ params = {"foo":"bar", "baz":42, "quux":"All your base are belong to us"};
equal( jQuery.param(params), "foo=bar&baz=42&quux=All+your+base+are+belong+to+us", "simple" );
params = {"string":"foo","null":null,"undefined":undefined};
@@ -37,7 +39,7 @@ test("jQuery.param()", function() {
// #7945
equal( jQuery.param({"jquery": "1.4.2"}), "jquery=1.4.2", "Check that object with a jQuery property get serialized correctly" );
- var settings = { traditional: true };
+ settings = { traditional: true };
if ( jQuery.ajaxSettings ) {
jQuery.ajaxSetup( settings );