mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Use innerHTML instead of outerHTML for .toHaveHtml matcher
This commit is contained in:
2
vendor/jasmine-jquery.js
vendored
2
vendor/jasmine-jquery.js
vendored
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user