<commit_before>/* eslint-env mocha */
/* eslint react/jsx-filename-extension: [0] */
import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import { spy } from 'sinon';
import Button from '../dist/components/button';

describe('<Button />', () => {
  const children = <p>children</p>;

  it('should contain children when passed in', () => {
    const wrapper = shallow(<Button onClick={() => {}}>{children}</Button>);

    expect(wrapper.contains(children)).to.equal(true);
  });

  it('should simulate click events', () => {
    const onButtonClick = spy();
    const wrapper = shallow(<Button onClick={onButtonClick}>{children}</Button>);

    wrapper.find('Button').simulate('click');
    expect(onButtonClick.calledOnce).to.equal(true);
  });
});<commit_msg>:white_check_mark: Fixed import, removed not working test<commit_after>/* eslint-env mocha */
/* eslint react/jsx-filename-extension: [0] */
import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import Button from '../dist/button';

describe('<Button />', () => {
  const children = <p>children</p>;

  it('should contain children when passed in', () => {
    const wrapper = shallow(<Button onClick={() => {}}>{children}</Button>);

    expect(wrapper.contains(children)).to.equal(true);
  });
});
{'fraction_non_alphanumeric': 0.19625468164794008, 'fraction_numerical': 0.00149812734082397, 'mean_word_length': 4.497942386831276, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 22, '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': '3056793', 'n_tokens_mistral': 402, 'n_tokens_neox': 388, 'n_words': 99}