Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added toBeInDOM

  • Loading branch information...
commit a0966000716da1bbd9e4a7f5d734b74d8693393d 1 parent 5ca5b15
Rebecca Miller-Webster authored
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;
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.