Commit 435fbe17 authored by James Huston's avatar James Huston Committed by Rick Waldron

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

parent 6ac87167
...@@ -346,6 +346,8 @@ test("not(Element)", function() { ...@@ -346,6 +346,8 @@ test("not(Element)", function() {
}); });
test("not(Function)", 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)" ); 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() { ...@@ -357,7 +359,7 @@ test("not(Array)", function() {
}); });
test("not(jQuery)", 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)" ); deepEqual( jQuery("p").not(jQuery("#ap, #sndp, .result")).get(), q("firstp", "en", "sap", "first"), "not(jQuery)" );
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment