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 12:21:54 -0400
commitd2435ead36de361cd6094731f57de076320ec45d (patch)
tree45454a7d73370c70ed86803488425fa12e1594f9 /test/unit/serialize.js
parentc6a694e1c262acb941b7fd86663f186656496bbc (diff)
downloadjquery-d2435ead36de361cd6094731f57de076320ec45d.tar.gz
jquery-d2435ead36de361cd6094731f57de076320ec45d.zip
Update jshintrc to conform to new style guide. Conform to onevar and unused in tests. Fixes #13755.
Conflicts: src/.jshintrc src/data.js test/unit/attributes.js test/unit/core.js test/unit/data.js test/unit/event.js test/unit/manipulation.js test/unit/queue.js test/unit/traversing.js test/unit/wrap.js
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 );