Skip to content
This repository was archived by the owner on Mar 14, 2020. It is now read-only.

Test fail #8

Closed
ycgarrido opened this issue Aug 2, 2018 · 2 comments
Closed

Test fail #8

ycgarrido opened this issue Aug 2, 2018 · 2 comments

Comments

@ycgarrido
Copy link

I'm import react-lazy-hero into a component, but when i make test to my component fails.

import LazyHero from 'react-lazy-hero';

class Hero extends Component {

    constructor(props) {
	super(props);
    }

   render() {
       const {
           image,
	   parallaxOffset,
	   isFixed,
	   isCentered,
	   overlayColor,
	   opacity,
	   minHeight,
           children
     } = this.props;
     <LazyHero 
         isFixed={isFixed}
         isCentered={isCentered}
         imageSrc={image}
         opacity={opacity}
         color={overlayColor}
         parallaxOffset={parallaxOffset}
         minHeight={minHeight}>
         {children}
      </LazyHero>
   }
}

when run test of this component fail:

image

Please can you say me why ???

@danistefanovic
Copy link
Owner

How does your test look like?

@danistefanovic
Copy link
Owner

Closing due to inactivity.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants