Use innerHTML instead of outerHTML for .toHaveHtml matcher

This commit is contained in:
Nathan Sobo
2015-09-07 19:00:50 -06:00
parent 65e74cb5ba
commit ea742c1123

View File

@@ -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()
}