From 0fa52c11cbfe70780648b99717f1dd3502befaff Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Tue, 9 Apr 2013 11:45:09 -0400 Subject: Update jshintrc to conform to new style guide. Conform to onevar and unused in tests. Fixes #13755. --- test/unit/serialize.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/unit/serialize.js') 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 ); -- cgit v1.2.3