aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/__tests__/components/ContentView/DownloadContentButtonSpec.js
blob: fd00627d97b77284564e304724f0e4c55354ca06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import React from 'react'
import renderer from 'react-test-renderer'
import DownloadContentButton from '../../../components/ContentView/DownloadContentButton'
import { TFlow } from '../../ducks/tutils'

let tflow = new TFlow()
describe('DownloadContentButton Component', () => {
    it('should render correctly', () => {
        let downloadContentButton = renderer.create(
            <DownloadContentButton flow={tflow} message={tflow.response}/>
        ),
            tree = downloadContentButton.toJSON()
        expect(tree).toMatchSnapshot()
    })
})