Skip to content

Commit

Permalink
Remove meta data filtering from test
Browse files Browse the repository at this point in the history
Because the current server renderer includes the meta data, it remains in a revived tree.
  • Loading branch information
sebmarkbage committed May 2, 2017
1 parent 71305a8 commit b02ebe3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,8 @@ describe('ReactDOMServer', () => {

var expectedMarkup = lastMarkup;
if (ReactDOMFeatureFlags.useFiber) {
var reactMetaData = /\s+data-react[a-z-]+="[^"]*"/g;
var reactComments = /<!-- \/?react-text(: \d+)? -->/g;
expectedMarkup = expectedMarkup
.replace(reactMetaData, '')
.replace(reactComments, '');
expectedMarkup = expectedMarkup.replace(reactComments, '');
}
expect(element.innerHTML).toBe(expectedMarkup);

Expand Down

0 comments on commit b02ebe3

Please sign in to comment.