render() { let renderedForm; if(this.props.path == '/forgot-password') { renderedForm = ( <ForgotPasswordForm/> ) }else if(this.props.path == '/register'){ renderedForm = ( <AccountForm path={BASE_ENDPOINTS.userRegister}/> ) }else if(this.props.path == '/reset-password'){ renderedForm = ( <AccountForm path={BASE_ENDPOINTS.userReset}/> ) }else{ renderedForm = ( <AccountForm path={BASE_ENDPOINTS.userLogin}/> ) } const styles = { height: this.props.paneHeight } return ( <div class={style.main} style={styles}> {renderedForm} </div> ); }
if (path === BASE_ENDPOINTS.userRegister) { result = validateRegister(formData);
describe('<AccountForm path={BASE_ENDPOINTS.userRegister}/>', () => { const wrapper = shallow(<AccountForm path={BASE_ENDPOINTS.userRegister}/>);
</div>; if(path === BASE_ENDPOINTS.userRegister){ display = <div class={style.display}>
render() { let renderedForm; if(this.props.path == '/forgot-password') { renderedForm = ( <ForgotPasswordForm/> ) }else if(this.props.path == '/register'){ renderedForm = ( <AccountForm path={BASE_ENDPOINTS.userRegister}/> ) }else if(this.props.path == '/reset-password'){ renderedForm = ( <AccountForm path={BASE_ENDPOINTS.userReset}/> ) }else{ renderedForm = ( <AccountForm path={BASE_ENDPOINTS.userLogin}/> ) } const styles = { height: this.props.paneHeight } return ( <div class={style.main} style={styles}> {renderedForm} </div> ); }
if (path === BASE_ENDPOINTS.userRegister) { result = validateRegister(formData);
describe('<AccountForm path={BASE_ENDPOINTS.userRegister}/>', () => { const wrapper = shallow(<AccountForm path={BASE_ENDPOINTS.userRegister}/>);
</div>; if(path === BASE_ENDPOINTS.userRegister){ display = <div class={style.display}>