mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 07:08:10 +00:00
[web] Add tests for js/ducks/index.js & js/ducks/ui/index.js
This commit is contained in:
parent
23f180ba4f
commit
21cdfe835b
12
web/src/js/__tests__/ducks/indexSpec.js
Normal file
12
web/src/js/__tests__/ducks/indexSpec.js
Normal 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()
|
||||
})
|
||||
})
|
Loading…
Reference in New Issue
Block a user