diff --git a/package.json b/package.json index 7f4543a..4ac155c 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" 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(