<commit_before>import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
// import Register from '../../../../src/client/components';

describe('Component: <Register/>', () => {
  it('should have five input boxes and one button', () => {
    const wrapper = shallow(<Register/>);
    expect(wrapper.find('input')).to.have.length(5);
    expect(wrapper.find('button')).to.have.length(1);
  });

  it('should have props of registerUser, isPending, and isLoggedIn', () => {
    const wrapper = shallow(<Register/>);
    expect(wrapper.props().registerUser).to.be.a.function;
    expect(wrapper.props().isPending).to.be.a.boolean;
    expect(wrapper.props().isLoggedIn).to.be.a.boolean;
  });

  it('should update isPending on click', () => {
    const wrapper = shallow(<Register/>);
    wrapper.find('button').simulate('click');
    expect(wrapper.props().isPending).to.be.true;
  });
});
<commit_msg>Mistakenly shallow rendered component rather than mounted it for onClick testing<commit_after>import React from 'react';
import { shallow, mount } from 'enzyme';
import { expect } from 'chai';
// import Register from '../../../../src/client/components';

describe('Component: <Register/>', () => {
  it('should have five input boxes and one button', () => {
    const wrapper = shallow(<Register/>);
    expect(wrapper.find('input')).to.have.length(5);
    expect(wrapper.find('button')).to.have.length(1);
  });

  it('should have props of registerUser, isPending, and isLoggedIn', () => {
    const wrapper = shallow(<Register/>);
    expect(wrapper.props().registerUser).to.be.a.function;
    expect(wrapper.props().isPending).to.be.a.boolean;
    expect(wrapper.props().isLoggedIn).to.be.a.boolean;
  });

  it('should update isPending on click', () => {
    const wrapper = mount(<Register/>);
    wrapper.find('button').simulate('click');
    expect(wrapper.props().isPending).to.be.true;
  });
});

{'fraction_non_alphanumeric': 0.19659442724458204, 'fraction_numerical': 0.0020639834881320948, 'mean_word_length': 4.023316062176166, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, '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': '403201', 'n_tokens_mistral': 588, 'n_tokens_neox': 587, 'n_words': 121}