<commit_before>import React from 'react';
import sinon from 'sinon';

import { shallow, mount, render } from 'enzyme';
import { assert, expect } from 'chai';

import FilterBar from '../lib/components/FilterBar';
import Application from '../lib/components/Application';
import {handleSort} from '../lib/components/Application';

describe('FilterBar', () => {
  const wrapper = shallow(<FilterBar
    handleSort={() => {}}
  />);

  it('should have a class of filterBar', () => {
    assert.equal(wrapper.find('.filterBar').length, 1);
  });

  it.skip('should have an input with a prop of value', () => {
    expect('.searchInput').to.have.property('placeholder');
  });

  it('class appName should have a value', () => {
    assert.equal(wrapper.find('.appName').text(), 'Shoot Thou Breeze');
  });

  it.skip('simulates clicking down', () => {
    const onButtonClick = sinon.spy();
    const wrapper = mount(
      <FilterBar onButtonClick={onButtonClick}
      handleSort={() => {}} />
    );
    wrapper.find('.sortChronoBtn').simulate('click');
    expect(onButtonClick).to.have.property('callCount', 1);
  });

  it.skip('simulates clicking up', () => {
    const onButtonClick = sinon.spy();
    const wrapper = mount(
      <FilterBar onButtonClick={onButtonClick}
      handleSort={() => {}} />
    );
    wrapper.find('.sortReverseChronoBtn').simulate('click');
    expect(onButtonClick).to.have.property('callCount', 1);
  });

});<commit_msg>testing filter bar<commit_after>import React from 'react';
import sinon from 'sinon';

import { shallow, mount, render } from 'enzyme';
import { assert, expect } from 'chai';

import FilterBar from '../lib/components/FilterBar';
import Application from '../lib/components/Application';
import {handleSort} from '../lib/components/Application';

describe('FilterBar', () => {
  const wrapper = shallow(<FilterBar
    handleSort={() => {}}
    placeholder='Filter'
  />);

  it('should have a class of filterBar', () => {
    assert.equal(wrapper.find('.filterBar').length, 1);
  });

  it('should have an input with a prop of placeholder', () => {
    expect('.searchInput').to.have.property('placeholder');
  });

  it('class appName should have a value', () => {
    assert.equal(wrapper.find('.appName').text(), 'Shoot Thou Breeze');
  });

  it.skip('simulates clicking down', () => {
    const onButtonClick = sinon.spy();
    const wrapper = mount(
      <FilterBar onButtonClick={onButtonClick}
      handleSort={() => {}} />
    );
    wrapper.find('.sortChronoBtn').simulate('click');
    expect(onButtonClick).to.have.property('callCount', 1);
  });

  it.skip('simulates clicking up', () => {
    const onButtonClick = sinon.spy();
    const wrapper = mount(
      <FilterBar onButtonClick={onButtonClick}
      handleSort={() => {}} />
    );
    wrapper.find('.sortReverseChronoBtn').simulate('click');
    expect(onButtonClick).to.have.property('callCount', 1);
  });

});
{'fraction_non_alphanumeric': 0.187138482477033, 'fraction_numerical': 0.002041510717931269, 'mean_word_length': 3.891846921797005, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 27, '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': '7021628', 'n_tokens_mistral': 899, 'n_tokens_neox': 880, 'n_words': 191}