Skip to content
Snippets Groups Projects
Commit 43c9a844 authored by Jack Reed's avatar Jack Reed
Browse files

setup minimal mocking of IntersectionObserver in test harness

parent 40d2e418
No related branches found
No related tags found
No related merge requests found
......@@ -18,4 +18,16 @@ global.navigator = {
userAgent: 'node.js',
};
/* eslint-disable require-jsdoc, class-methods-use-this */
class IntersectionObserverPolyfill {
observe() {
}
disconnect() {
}
}
/* eslint-enable require-jsdoc, class-methods-use-this */
global.IntersectionObserver = IntersectionObserverPolyfill;
Enzyme.configure({ adapter: new Adapter() });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment