import React from 'react'
import ReactTestUtils from 'react-addons-test-utils'
import assert from 'assert'
import {getKaomoji, getYmdStr } from '../app/Resources/js/utils/util.js'
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')
    })
})

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')
    })
})

Revert "travis fail karma fix"
Revert "travis fail karma fix"

This reverts commit 603eb5ee8bba3c881cee80d4e89a9faa82449c24.