Skip to content

Commit

Permalink
Use innerHTML instead of outerHTML for .toHaveHtml matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Sobo committed Sep 19, 2015
1 parent 65e74cb commit ea742c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/jasmine-jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jasmine.JQuery.matchersClass = {};
toHaveHtml: function(html) {
var actualHTML;
if (this.actual instanceof HTMLElement) {
actualHTML = this.actual.outerHTML
actualHTML = this.actual.innerHTML
} else {
actualHTML = this.actual.html()
}
Expand Down

0 comments on commit ea742c1

Please sign in to comment.