Skip to content

Commit

Permalink
Merge pull request #3786 from HurricaneJames/master
Browse files Browse the repository at this point in the history
check that React renders the menuitem closing tag
  • Loading branch information
sophiebits committed Apr 29, 2015
2 parents a56d0d6 + d42bf67 commit 571c327
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/browser/ui/__tests__/ReactDOMComponent-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,9 @@ describe('ReactDOMComponent', function() {

var container = document.createElement('div');

React.render(<menu><menuitem /></menu>, container);
var returnedValue = React.renderToString(<menu><menuitem /></menu>);

expect(container.innerHTML).toContain('</menuitem>');
expect(returnedValue).toContain('</menuitem>');

React.render(<menu><menuitem>children</menuitem></menu>, container);

Expand Down

0 comments on commit 571c327

Please sign in to comment.