<commit_before>import React from 'react'
import ReactTestUtils from 'react-addons-test-utils'
import assert from 'assert'
import Header from '../app/Resources/js/components/header.jsx'

describe('testHeader', () => {
    const getComponent = () => {
        return ReactTestUtils.renderIntoDocument(<Header getDailyJson={[]} timelineDateList={[]} appUsername={'hoge'}/>)
    }

    it('username', () => {
        let component = getComponent()
        assert(component.props.appUsername == 'hoge')
    })
})<commit_msg>replace shallow rendering to test<commit_after>import React from 'react'
import ReactTestUtils from 'react-addons-test-utils'
import assert from 'assert'
import Header from '../app/Resources/js/components/header.jsx'

describe('testHeader', () => {
    const getComponent = () => {
        const renderer = ReactTestUtils.createRenderer()
        renderer.render(<Header />)
        return renderer.getRenderOutput()
    }

    it('isRender', () => {
        let component = getComponent()
        assert( typeof component == 'object')
    })
})
{'fraction_non_alphanumeric': 0.14661654135338345, 'fraction_numerical': 0.0, 'mean_word_length': 3.6710526315789473, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '4470208', 'n_tokens_mistral': 302, 'n_tokens_neox': 294, 'n_words': 67}