Fix a test for production

This commit is contained in:
Toru Kobayashi committed 2017-12-02 21:05:51 +09:00
1 parent 3de8f10788
commit c04a922cce
1 file changed
+3 -1
@@ -385,7 +385,9 @@ describe('ReactDOMServer', () => {
ReactDOM.hydrate(<button autoFocus={false}>client</button>, element);
expect(element.firstChild.focus).not.toHaveBeenCalled();
expect(console.error.calls.count()).toBe(1);
if (__DEV__) {
expect(console.error.calls.count()).toBe(1);
}
});
it('should throw with silly args', () => {