Skip to content

Commit d828078

Browse files
committed
Fix Jest origin error
1 parent 30f2933 commit d828078

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
"start": "webpack --watch",
4141
"build": "webpack"
4242
},
43+
"jest": {
44+
"verbose": true,
45+
"testURL": "http://localhost/"
46+
},
4347
"repository": {
4448
"type": "git",
4549
"url": "git+https://github.com/Aljullu/react-lazy-load-image-component.git"

src/components/LazyLoadImage.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('LazyLoadImage', function() {
2525
placeholder: null,
2626
scrollPosition: {x: 0, y: 0},
2727
style: {},
28-
src: 'lorem-ipsum.jpg',
28+
src: 'http://localhost/lorem-ipsum.jpg',
2929
visibleByDefault: false
3030
};
3131
const lazyLoadImage = mount(

0 commit comments

Comments
 (0)