mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
check that React renders the menuitem closing tag
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user