Skip to content
Browse files

added toBeInDOM

  • Loading branch information...
1 parent 5ca5b15 commit a0966000716da1bbd9e4a7f5d734b74d8693393d Rebecca Miller-Webster committed May 26, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 matchers.js
View
4 matchers.js
@@ -34,6 +34,10 @@ beforeEach(function() {
var val = this.actual.is(":visible") ||
!jasmine.JQuery.matchersClass["toHaveAttr"]('display', 'none');
return val;
+ },
+
+ toBeInDOM: function() {
+ return this.actual.parent().size() > 0;
}
});

0 comments on commit a096600

Please sign in to comment.
Something went wrong with that request. Please try again.