From e2af987877c83e5b054e1f9cac1a8534ebed0b18 Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Fri, 13 Nov 2015 17:03:05 +0300 Subject: [PATCH] Release: fix revert artefacts --- src/deprecated.js | 2 -- src/wrap.js | 6 +++--- test/unit/deprecated.js | 6 +++--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/deprecated.js b/src/deprecated.js index dfd06826a..c82989007 100644 --- a/src/deprecated.js +++ b/src/deprecated.js @@ -30,5 +30,3 @@ jQuery.fn.andSelf = jQuery.fn.addBack; } ); - - diff --git a/src/wrap.js b/src/wrap.js index e43794448..4d2c3b204 100644 --- a/src/wrap.js +++ b/src/wrap.js @@ -10,9 +10,9 @@ jQuery.fn.extend( { var wrap; if ( jQuery.isFunction( html ) ) { - return this.each(function( i ) { - jQuery( this ).wrapAll( html.call(this, i) ); - }); + return this.each( function( i ) { + jQuery( this ).wrapAll( html.call( this, i ) ); + } ); } if ( this[ 0 ] ) { diff --git a/test/unit/deprecated.js b/test/unit/deprecated.js index a033135bf..9dfd515ce 100644 --- a/test/unit/deprecated.js +++ b/test/unit/deprecated.js @@ -40,8 +40,8 @@ QUnit.test( "delegate/undelegate", function( assert ) { .remove(); } ); if ( jQuery.fn.size ) { - test("size()", function() { - expect(1); - equal( jQuery("#qunit-fixture p").size(), 6, "Get Number of Elements Found" ); + QUnit.test("size()", function( assert ) { + assert.expect( 1 ); + assert.equal( jQuery("#qunit-fixture p").size(), 6, "Get Number of Elements Found" ); }); } -- 2.39.5