Skip to content

Commit 4f8f2b1

Browse files
committed
Try to fix tests in Travis
1 parent c73bdaa commit 4f8f2b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/intersection-observer.spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ describe('isIntersectionObserverAvailable', function() {
1414

1515
it('returns false if IntersectionObserver is not available', function() {
1616
delete window.IntersectionObserver;
17+
window.IntersectionObserverEntry = {
18+
prototype: {},
19+
};
1720
delete window.IntersectionObserverEntry;
1821

1922
expect(isIntersectionObserverAvailable()).toBe(false);

0 commit comments

Comments
 (0)