aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/__tests__/components/ContentView/ContentViewOptionsSpec.js
blob: 68afb4ec6fb5d1d04015614006c45c24ba411bd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import React from 'react'
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()

describe('ContentViewOptions Component', () => {
    let store = TStore()
    it('should render correctly', () => {
        let provider = renderer.create(
            <Provider store={store}>
                <ContentViewOptions flow={tflow} message={tflow.response} uploadContent={uploadContent}/>
            </Provider>),
            tree = provider.toJSON()
        expect(tree).toMatchSnapshot()
    })
})