mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Use proper render method in static markup event listener test (#7652)
This commit is contained in:
1 parent
7b247f3609
commit
40c90a6499
1 file changed
+1
-1
@@ -326,7 +326,7 @@ describe('ReactServerRendering', function() {
|
||||
var EventPluginHub = require('EventPluginHub');
|
||||
var cb = jest.fn();
|
||||
|
||||
ReactServerRendering.renderToString(
|
||||
ReactServerRendering.renderToStaticMarkup(
|
||||
<span onClick={cb}>hello world</span>
|
||||
);
|
||||
expect(EventPluginHub.__getListenerBank()).toEqual({});
|
||||
|
||||
Reference in new issue
Block a user