From: James Huston Date: Mon, 15 Oct 2012 16:18:14 +0000 (-0400) Subject: Enforce expects in events.js (https://github.com/jquery/2012-dev-summit/issues/53... X-Git-Tag: 1.9.0b1~222 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=435fbe17930d4e01b3e7b1a2ca6a925769b6e847;p=jquery.git Enforce expects in events.js (https://github.com/jquery/2012-dev-summit/issues/53) Closes gh-962 --- diff --git a/test/unit/traversing.js b/test/unit/traversing.js index e7d519662..e1d982c80 100644 --- a/test/unit/traversing.js +++ b/test/unit/traversing.js @@ -346,6 +346,8 @@ test("not(Element)", function() { }); test("not(Function)", function() { + expect(1); + deepEqual( jQuery("#qunit-fixture p").not(function() { return jQuery("a", this).length; }).get(), q("sndp", "first"), "not(Function)" ); }); @@ -357,7 +359,7 @@ test("not(Array)", function() { }); test("not(jQuery)", function() { - expect(1); + expect( 1 ); deepEqual( jQuery("p").not(jQuery("#ap, #sndp, .result")).get(), q("firstp", "en", "sap", "first"), "not(jQuery)" ); });