Skip to content

Commit 02f4bec

Browse files
committed
remove fake rafs
1 parent 601f157 commit 02f4bec

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

packages/react-dom/src/events/__tests__/ChangeEventPlugin-test.internal.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,7 @@ describe('ChangeEventPlugin', () => {
3636
ReactFeatureFlags = require('shared/ReactFeatureFlags');
3737
// TODO pull this into helper method, reduce repetition.
3838
// mock the browser APIs which are used in schedule:
39-
// - requestAnimationFrame should pass the DOMHighResTimeStamp argument
4039
// - calling 'window.postMessage' should actually fire postmessage handlers
41-
global.requestAnimationFrame = function(cb) {
42-
return setTimeout(() => {
43-
cb(Date.now());
44-
});
45-
};
4640
const originalAddEventListener = global.addEventListener;
4741
let postMessageCallback;
4842
global.addEventListener = function(eventName, callback, useCapture) {

scripts/jest/setupEnvironment.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ global.__PROFILE__ = NODE_ENV === 'development';
99
global.__UMD__ = false;
1010

1111
if (typeof window !== 'undefined') {
12-
global.requestAnimationFrame = function(callback) {
13-
setTimeout(callback);
14-
};
15-
1612
global.requestIdleCallback = function(callback) {
1713
return setTimeout(() => {
1814
callback({

0 commit comments

Comments
 (0)