diff options
author | Matthew Shao <me@matshao.com> | 2017-03-11 18:57:32 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2017-03-11 18:57:32 +0800 |
commit | 523cbb02aae08d9325c481de9eef7c651cf9c14a (patch) | |
tree | 2230559c92ce62e6c999457ba0ec268c4003cc79 /web/src/js/__tests__/ducks/flowsSpec.js | |
parent | c4e0ea27a13649f282a889bd5c8f6f6b1b9a6f94 (diff) | |
download | mitmproxy-523cbb02aae08d9325c481de9eef7c651cf9c14a.tar.gz mitmproxy-523cbb02aae08d9325c481de9eef7c651cf9c14a.tar.bz2 mitmproxy-523cbb02aae08d9325c481de9eef7c651cf9c14a.zip |
[web] Fixes all existed tests
Diffstat (limited to 'web/src/js/__tests__/ducks/flowsSpec.js')
-rw-r--r-- | web/src/js/__tests__/ducks/flowsSpec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/src/js/__tests__/ducks/flowsSpec.js b/web/src/js/__tests__/ducks/flowsSpec.js index 2b261cb1..acfa3083 100644 --- a/web/src/js/__tests__/ducks/flowsSpec.js +++ b/web/src/js/__tests__/ducks/flowsSpec.js @@ -1,13 +1,14 @@ jest.unmock('../../ducks/flows'); import reduceFlows, * as flowActions from '../../ducks/flows' +import * as storeActions from '../../ducks/utils/store' describe('select flow', () => { let state = reduceFlows(undefined, {}) for (let i of [1, 2, 3, 4]) { - state = reduceFlows(state, flowActions.addFlow({ id: i })) + state = reduceFlows(state, storeActions.add({ id: i })) } it('should be possible to select a single flow', () => { |