mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Fix a test for production
This commit is contained in:
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', () => {
|
||||
|
||||
Reference in new issue
Block a user