aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/traversing.js
diff options
context:
space:
mode:
authorJames Huston <james@jameshuston.net>2012-10-15 12:18:14 -0400
committerRick Waldron <waldron.rick@gmail.com>2012-10-15 12:18:14 -0400
commit435fbe17930d4e01b3e7b1a2ca6a925769b6e847 (patch)
treea8dc648254815a6743c5cc3e79cb44e71368fbfb /test/unit/traversing.js
parent6ac87167893e1de24761eaff47bbf9a20d0d6f98 (diff)
downloadjquery-435fbe17930d4e01b3e7b1a2ca6a925769b6e847.tar.gz
jquery-435fbe17930d4e01b3e7b1a2ca6a925769b6e847.zip
Enforce expects in events.js (https://github.com/jquery/2012-dev-summit/issues/53) Closes gh-962
Diffstat (limited to 'test/unit/traversing.js')
-rw-r--r--test/unit/traversing.js4
1 files changed, 3 insertions, 1 deletions
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)" );
});