Use proper render method in static markup event listener test (#7652)

This commit is contained in:
Nathan Hunzaker
2016-09-03 12:29:12 -04:00
committed by Dan Abramov
parent 7b247f3609
commit 40c90a6499
@@ -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({});