You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
628 B
29 lines
628 B
7 years ago
|
import React from 'react'
|
||
|
import { shallow } from 'enzyme'
|
||
|
|
||
|
import RequestForm from '../../../app/components/Form/RequestForm'
|
||
|
|
||
|
const defaultProps = {
|
||
|
requestform: {
|
||
|
amount: '',
|
||
|
showErrors: {}
|
||
|
},
|
||
|
currency: '',
|
||
|
crypto: '',
|
||
|
|
||
|
setRequestAmount: () => {},
|
||
|
setRequestMemo: () => {},
|
||
|
|
||
|
onRequestSubmit: () => {}
|
||
|
}
|
||
|
|
||
|
describe('Form', () => {
|
||
|
describe('should show request form when formType is REQUEST_FORM', () => {
|
||
|
const props = { ...defaultProps }
|
||
|
const el = shallow(<RequestForm {...props} />)
|
||
|
it('should contain RequestForm', () => {
|
||
|
expect(el.contains('Request')).toBe(true)
|
||
|
})
|
||
|
})
|
||
|
})
|