From dda87f6b16fa36c728aef1a85a69176a36cf5b21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82=C4=99biowski?= Date: Wed, 27 Jan 2016 12:13:32 +0100 Subject: [PATCH] Build: enable JSCS for test/unit/support.js, fix styling issues --- Gruntfile.js | 1 + test/unit/support.js | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 1e204ad23..ec1705a50 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -134,6 +134,7 @@ module.exports = function( grunt ) { "test/data/testrunner.js", "test/unit/animation.js", "test/unit/basic.js", + "test/unit/support.js", "test/unit/tween.js", "test/unit/wrap.js" ], diff --git a/test/unit/support.js b/test/unit/support.js index f51c53502..3e6af1ae7 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -29,7 +29,8 @@ if ( jQuery.css ) { }; assert.ok( okValue[ color ], "color was not reset (" + color + ")" ); - assert.deepEqual( jQuery.extend( {}, support ), computedSupport, "Same support properties" ); + assert.deepEqual( jQuery.extend( {}, support ), computedSupport, + "Same support properties" ); } ); } @@ -43,7 +44,8 @@ testIframeWithCallback( var done = assert.async(); assert.expect( 2 ); - assert.deepEqual( jQuery.extend( {}, support ), computedSupport, "No violations of CSP polices" ); + assert.deepEqual( jQuery.extend( {}, support ), computedSupport, + "No violations of CSP polices" ); supportjQuery.get( "data/support/csp.log" ).done( function( data ) { assert.equal( data, "", "No log request should be sent" ); @@ -273,6 +275,6 @@ testIframeWithCallback( assert.ok( true, "no ajax; skipping jQuery.support['" + i + "']" ); } } - }); + } ); } )();