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:
1 parent
a56d0d6dc5
commit
d42bf671d2
1 file changed
+2
-2
@@ -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