Skip to content

Commit

Permalink
Add method, tests, and docs for html method in ReactWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate Piche committed Dec 24, 2015
1 parent 726b2ec commit a934af9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ReactWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,11 @@ export default class ReactWrapper {
* @returns {String}
*/
html() {
<<<<<<< HEAD
return this.single(n => findDOMNode(n).outerHTML.replace(/\sdata-reactid+="[^"]+"/g, ''));
=======
return this.single(n => findDOMNode(n).outerHTML.replace(/\sdata-reactid[^>]+/g, ''));
>>>>>>> Add method, tests, and docs for html method in ReactWrapper
}

/**
Expand Down

0 comments on commit a934af9

Please sign in to comment.