aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/__tests__/ducks
diff options
context:
space:
mode:
authorMatthew Shao <me@matshao.com>2017-05-08 09:26:00 +0800
committerMatthew Shao <me@matshao.com>2017-05-08 09:26:00 +0800
commitf327a520299900c50452644236c0a971aa8ec3c6 (patch)
tree446be95c0b62633c9e21f4266744bea89248ebd9 /web/src/js/__tests__/ducks
parent21cdfe835b9128acaa805b226017e7252380c8d8 (diff)
downloadmitmproxy-f327a520299900c50452644236c0a971aa8ec3c6.tar.gz
mitmproxy-f327a520299900c50452644236c0a971aa8ec3c6.tar.bz2
mitmproxy-f327a520299900c50452644236c0a971aa8ec3c6.zip
[web] Add tests for js/__tests__/ducks/ui/indexSpec.js
Diffstat (limited to 'web/src/js/__tests__/ducks')
-rw-r--r--web/src/js/__tests__/ducks/ui/indexSpec.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/web/src/js/__tests__/ducks/ui/indexSpec.js b/web/src/js/__tests__/ducks/ui/indexSpec.js
new file mode 100644
index 00000000..3c136bff
--- /dev/null
+++ b/web/src/js/__tests__/ducks/ui/indexSpec.js
@@ -0,0 +1,9 @@
+import reduceUI from '../../../ducks/ui/index'
+
+describe('reduceUI in js/ducks/ui/index.js', () => {
+ it('should combine flow and header', () => {
+ let state = reduceUI(undefined, {})
+ expect(state.hasOwnProperty('flow')).toBeTruthy()
+ expect(state.hasOwnProperty('header')).toBeTruthy()
+ })
+})