diff options
author | Matthew Shao <me@matshao.com> | 2017-05-08 08:53:44 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2017-05-08 08:53:44 +0800 |
commit | 21cdfe835b9128acaa805b226017e7252380c8d8 (patch) | |
tree | dd23780a27a2f0722eec3b20fa752a5259e6b75f /web/src/js | |
parent | 23f180ba4f4876c1d92b2d198f6c6daf888ae650 (diff) | |
download | mitmproxy-21cdfe835b9128acaa805b226017e7252380c8d8.tar.gz mitmproxy-21cdfe835b9128acaa805b226017e7252380c8d8.tar.bz2 mitmproxy-21cdfe835b9128acaa805b226017e7252380c8d8.zip |
[web] Add tests for js/ducks/index.js & js/ducks/ui/index.js
Diffstat (limited to 'web/src/js')
-rw-r--r-- | web/src/js/__tests__/ducks/indexSpec.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/web/src/js/__tests__/ducks/indexSpec.js b/web/src/js/__tests__/ducks/indexSpec.js new file mode 100644 index 00000000..c5c4d525 --- /dev/null +++ b/web/src/js/__tests__/ducks/indexSpec.js @@ -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() + }) +}) |