[web] Add tests for js/ducks/index.js & js/ducks/ui/index.js

This commit is contained in:
Matthew Shao 2017-05-08 08:53:44 +08:00
parent 23f180ba4f
commit 21cdfe835b

View File

@ -0,0 +1,12 @@
import reduceState from '../../ducks/index'
describe('reduceState in js/ducks/index.js', () => {
it('should combine flow and header', () => {
let state = reduceState(undefined, {})
expect(state.hasOwnProperty('eventLog')).toBeTruthy()
expect(state.hasOwnProperty('flows')).toBeTruthy()
expect(state.hasOwnProperty('settings')).toBeTruthy()
expect(state.hasOwnProperty('connection')).toBeTruthy()
expect(state.hasOwnProperty('ui')).toBeTruthy()
})
})