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.
31 lines
726 B
31 lines
726 B
import React from 'react'
|
|
import { shallow } from 'enzyme'
|
|
|
|
import Request from '../../../app/components/Form/Request'
|
|
|
|
const defaultProps = {
|
|
requestform: {},
|
|
ticker: {},
|
|
|
|
currentCurrencyFilters: [],
|
|
showCurrencyFilters: true,
|
|
currencyName: '',
|
|
requestUsdAmount: '',
|
|
|
|
setRequestAmount: () => {},
|
|
setRequestMemo: () => {},
|
|
setCurrency: () => {},
|
|
setRequestCurrencyFilters: () => {},
|
|
|
|
onRequestSubmit: () => {}
|
|
}
|
|
|
|
describe('Form', () => {
|
|
describe('should show request form when formType is REQUEST_FORM', () => {
|
|
const props = { ...defaultProps }
|
|
const el = shallow(<Request {...props} />)
|
|
it('should contain Request', () => {
|
|
expect(el.contains('Request')).toBe(true)
|
|
})
|
|
})
|
|
})
|
|
|