If user writes for instead of htmlFor, warning is shown. I suppose autofocus instead of autoFocus should warn too.

render() {
          return <div style={{margin: '0'}} />;
        }
      }
      ReactTestUtils.renderIntoDocument(<Component />);
      expect(console.error.calls.count()).toBe(0);
    });
    it('should warn nicely about NaN in style', () => {
      spyOn(console, 'error');
      var style = {fontSize: NaN};
      var div = document.createElement('div');
      ReactDOM.render(<span style={style}></span>, div);
      ReactDOM.render(<span style={style}></span>, div);
      expect(console.error.calls.count()).toBe(1);
      expect(console.error.calls.argsFor(0)[0]).toEqual(
        'Warning: `NaN` is an invalid value for the `fontSize` css style property.',
      );
    });
    it('should update styles if initially null', () => {
      var styles = null;