Explorar el Código

Fix test case

afc163 hace 8 años
padre
commit
7532598937
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      tests/setupTests.js

+ 4 - 1
tests/setupTests.js

@@ -1,5 +1,8 @@
 /* eslint-disable import/first */
-import '../src/polyfill';
+global.requestAnimationFrame =
+  global.requestAnimationFrame || function requestAnimationFrame(callback) {
+    setTimeout(callback, 0);
+  };
 import { jsdom } from 'jsdom';
 import Enzyme from 'enzyme';
 import Adapter from 'enzyme-adapter-react-16';