diff --git a/package.json b/package.json index 7f4543a..4c5b6c3 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,10 @@ "start": "webpack --watch", "build": "webpack" }, + "jest": { + "verbose": true, + "testURL": "http://localhost/" + }, "repository": { "type": "git", "url": "git+https://github.com/Aljullu/react-lazy-load-image-component.git" @@ -61,4 +65,4 @@ "url": "https://github.com/Aljullu/react-lazy-load-image-component/issues" }, "homepage": "https://github.com/Aljullu/react-lazy-load-image-component#readme" -} +} \ No newline at end of file diff --git a/src/components/LazyLoadImage.jsx b/src/components/LazyLoadImage.jsx index 2e492bc..d61417c 100644 --- a/src/components/LazyLoadImage.jsx +++ b/src/components/LazyLoadImage.jsx @@ -101,8 +101,7 @@ class LazyLoadImage extends React.Component { LazyLoadImage.propTypes = { afterLoad: PropTypes.func, - effect: PropTypes.string, - placeholderSrc: PropTypes.string + effect: PropTypes.string }; LazyLoadImage.defaultProps = { @@ -111,3 +110,4 @@ LazyLoadImage.defaultProps = { }; export default LazyLoadImage; + diff --git a/src/components/LazyLoadImage.spec.js b/src/components/LazyLoadImage.spec.js index 1768f32..d7106db 100644 --- a/src/components/LazyLoadImage.spec.js +++ b/src/components/LazyLoadImage.spec.js @@ -25,7 +25,7 @@ describe('LazyLoadImage', function() { placeholder: null, scrollPosition: {x: 0, y: 0}, style: {}, - src: 'lorem-ipsum.jpg', + src: 'http://localhost/lorem-ipsum.jpg', visibleByDefault: false }; const lazyLoadImage = mount(