diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 5d794b9bc..31426e739 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -1360,7 +1360,7 @@ test("html(undefined)", function() { test("html() on empty set", function() { expect(1); - strictEqual( jQuery( ).html(), undefined, ".html() returns undefined for empty sets (#11962)" ); + strictEqual( jQuery().html(), undefined, ".html() returns undefined for empty sets (#11962)" ); }); var testHtml = function(valueObj) { diff --git a/test/unit/offset.js b/test/unit/offset.js index 348c1bd17..6d00e8dac 100644 --- a/test/unit/offset.js +++ b/test/unit/offset.js @@ -11,8 +11,8 @@ module("offset", { teardown: moduleTeardown }); test("empty set", function() { expect(2); - strictEqual( jQuery( ).offset(), undefined, "offset() returns undefined for empty set (#11962)" ); - strictEqual( jQuery( ).position(), undefined, "position() returns undefined for empty set (#11962)" ); + strictEqual( jQuery().offset(), undefined, "offset() returns undefined for empty set (#11962)" ); + strictEqual( jQuery().position(), undefined, "position() returns undefined for empty set (#11962)" ); }); test("disconnected node", function() {