#6585

expect(console.error.calls.length).toBe(2);
      expect(console.error.argsForCall[1][0]).toBe(
        'Warning: a `div` tag (owner: `Two`) was passed a numeric string value ' +
        'for CSS property `fontSize` (value: `1`) which will be treated ' +
        'as a unitless number in a future version of React.'
      );
      
      ReactDOM.render(<One inline={true} />, div);
      expect(console.error.calls.length).toBe(2);
    });
    it('should warn nicely about NaN in style', function() {
      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.argsForCall.length).toBe(1);
      expect(console.error.argsForCall[0][0]).toEqual(
        'Warning: `NaN` is an invalid value for the `fontSize` css style property.',
      );
    });
    it('should update styles if initially null', function() {
      var styles = null;
      var container = document.createElement('div');
      ReactDOM.render(<div style={styles} />, container);
      var stubStyle = container.firstChild.style;
      styles = {display: 'block'};
      ReactDOM.render(<div style={styles} />, container);
      expect(stubStyle.display).toEqual('block');
    });