From 44dde11d5504337ddc5c2d77b06eff544f1fe07f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Juh=C3=A9=20Lluveras?= Date: Wed, 22 Aug 2018 09:06:33 +0200 Subject: [PATCH] Fix Jest origin error --- package.json | 4 ++++ src/components/LazyLoadImage.spec.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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(