Enforce expects in events.js (https://github.com/jquery/2012-dev-summit/issues/53) Closes gh-962

This commit is contained in:
James Huston
2012-10-15 12:18:14 -04:00
committed by Rick Waldron
parent 6ac8716789
commit 435fbe1793

View File

@@ -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)" );
});