diff options
author | Matthew Shao <me@matshao.com> | 2017-06-02 09:19:44 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2017-06-02 09:19:44 +0800 |
commit | 950810accbc3523316017b579c10b4e25ad0ce6d (patch) | |
tree | f2512cf9b754a2f6000514f26d87d8eecaf8b769 /web/src/js/__tests__/components | |
parent | ef9ee67c19662b033581a70a0658348f50694813 (diff) | |
download | mitmproxy-950810accbc3523316017b579c10b4e25ad0ce6d.tar.gz mitmproxy-950810accbc3523316017b579c10b4e25ad0ce6d.tar.bz2 mitmproxy-950810accbc3523316017b579c10b4e25ad0ce6d.zip |
[web] Update tests for js/components/ContentView/ContentViewOptions.jsx
Diffstat (limited to 'web/src/js/__tests__/components')
-rw-r--r-- | web/src/js/__tests__/components/ContentView/ContentViewOptionsSpec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/src/js/__tests__/components/ContentView/ContentViewOptionsSpec.js b/web/src/js/__tests__/components/ContentView/ContentViewOptionsSpec.js index 0b1e8538..68afb4ec 100644 --- a/web/src/js/__tests__/components/ContentView/ContentViewOptionsSpec.js +++ b/web/src/js/__tests__/components/ContentView/ContentViewOptionsSpec.js @@ -3,6 +3,7 @@ import renderer from 'react-test-renderer' import ContentViewOptions from '../../../components/ContentView/ContentViewOptions' import { Provider } from 'react-redux' import { TFlow, TStore } from '../../ducks/tutils' +import { uploadContent } from '../../../ducks/flows' let tflow = new TFlow() @@ -11,7 +12,7 @@ describe('ContentViewOptions Component', () => { it('should render correctly', () => { let provider = renderer.create( <Provider store={store}> - <ContentViewOptions flow={tflow} message={tflow.response}/> + <ContentViewOptions flow={tflow} message={tflow.response} uploadContent={uploadContent}/> </Provider>), tree = provider.toJSON() expect(tree).toMatchSnapshot() |