import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Row from '../src/Row';

describe('Row', function () {
  it('uses "div" by default', function () {
    let instance = ReactTestUtils.renderIntoDocument(
      <Row />
    );

    assert.equal(React.findDOMNode(instance).nodeName, 'DIV');
  });

  it('has "row" class', function () {
    let instance = ReactTestUtils.renderIntoDocument(
      <Row>Row content</Row>
    );
    assert.equal(React.findDOMNode(instance).className, 'row');
  });

  it('Should merge additional classes passed in', function () {
    let instance = ReactTestUtils.renderIntoDocument(
      <Row className="bob"/>
    );
    assert.ok(React.findDOMNode(instance).className.match(/\bbob\b/));
    assert.ok(React.findDOMNode(instance).className.match(/\brow\b/));
  });

  it('allows custom elements instead of "div"', function () {
    let instance = ReactTestUtils.renderIntoDocument(
      <Row componentClass='section' />
    );

    assert.equal(React.findDOMNode(instance).nodeName, 'SECTION');
  });
});

Add missing tests for 'Row'
Add missing tests for 'Row'
