<commit_before>import React from 'react'
import TestUtils from 'react-addons-test-utils'
import Main from '../../src/assets/components/Main'
import Box from '../../src/assets/components/Box'

describe('Main', function () {
    let main, box;
    beforeEach(function () {
        main = TestUtils.renderIntoDocument(<Main></Main>);
        box = TestUtils.findRenderedComponentWithType(main, Box);
    });

    it('contains a box', function () {
        expect(box).toBeDefined();
    });

    it('passes props to box', function () {
        expect(box.props.name).toEqual('I am a box');
        expect(box.props.duration).toEqual(0);
        expect(box.props.lastCheckedTime).toBeUndefined();
        expect(box.props.paused).toBeTruthy();
    });
});<commit_msg>Backfill paused state spec on Main<commit_after>import React from 'react'
import TestUtils from 'react-addons-test-utils'
import Main from '../../src/assets/components/Main'
import Box from '../../src/assets/components/Box'

describe('Main', function () {
    let main, box;
    beforeEach(function () {
        main = TestUtils.renderIntoDocument(<Main></Main>);
        box = TestUtils.findRenderedComponentWithType(main, Box);
    });

    it('contains a box', function () {
        expect(box).toBeDefined();
    });

    it('passes props to box', function () {
        expect(box.props.name).toEqual('I am a box');
        expect(box.props.duration).toEqual(0);
        expect(box.props.lastCheckedTime).toBeUndefined();
        expect(box.props.paused).toBeTruthy();
    });

    it('has state of paused', function () {
        expect(main.state.paused).toBeTruthy();
    });

    describe('when clicking a button', function () {

        it('changes state of paused', function () {
            TestUtils.Simulate.click(TestUtils.findRenderedDOMComponentWithTag(main, 'button'));
            expect(main.state.paused).toBeFalsy();
        });
    });
});
{'fraction_non_alphanumeric': 0.16172646905876234, 'fraction_numerical': 0.0010400416016640667, 'mean_word_length': 3.0762711864406778, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2200005', 'n_tokens_mistral': 567, 'n_tokens_neox': 559, 'n_words': 112}