<commit_before>var React = require('react/addons');
var TestUtils = React.addons.TestUtils;

jest.dontMock('../Table');
jest.dontMock('../../Util/Util');
jest.dontMock('./fixtures/MockTable');

var MockTable = require('./fixtures/MockTable');
var Table = require('../Table');

describe('List', function() {

  beforeEach(function () {
    this.callback = jasmine.createSpy();
    this.instance = TestUtils.renderIntoDocument(
      <Table
        className="table"
        columns={MockTable.columns}
        data={MockTable.rows}
        keys={['id']}
        sortBy={{
          prop: 'name',
          order: 'desc'
        }}
        onSort={this.callback} />
    );
  });

  it('should render the proper number of columns', function() {
    var thElements = TestUtils.scryRenderedDOMComponentsWithTag(
      this.instance, 'th'
    );

    expect(thElements.length).toEqual(MockTable.columns.length);<commit_msg>Fix mislabeled test<commit_after>var React = require('react/addons');
var TestUtils = React.addons.TestUtils;

jest.dontMock('../Table');
jest.dontMock('../../Util/Util');
jest.dontMock('./fixtures/MockTable');

var MockTable = require('./fixtures/MockTable');
var Table = require('../Table');

describe('Table', function() {

  beforeEach(function () {
    this.callback = jasmine.createSpy();
    this.instance = TestUtils.renderIntoDocument(
      <Table
        className="table"
        columns={MockTable.columns}
        data={MockTable.rows}
        keys={['id']}
        sortBy={{
          prop: 'name',
          order: 'desc'
        }}
        onSort={this.callback} />
    );
  });

  it('should render the proper number of columns', function() {
    var thElements = TestUtils.scryRenderedDOMComponentsWithTag(
      this.instance, 'th'
    );

    expect(thElements.length).toEqual(MockTable.columns.length);
{'fraction_non_alphanumeric': 0.16404128191200434, 'fraction_numerical': 0.0, 'mean_word_length': 3.066225165562914, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3497910', 'n_tokens_mistral': 561, 'n_tokens_neox': 547, 'n_words': 95}