blob: 3695be72702e8229eaf9eafc47a783cf2b7bb165 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import React from 'react'
import renderer from 'react-test-renderer'
import UploadContentButton from '../../../components/ContentView/UploadContentButton'
describe('UpdateContentButton Component', () => {
it('should render correctly', () => {
let uploadContentFn = jest.fn(),
uploadContentButton = renderer.create(<UploadContentButton uploadContent={uploadContentFn}/>),
tree = uploadContentButton.toJSON()
expect(tree).toMatchSnapshot()
})
})
|