summaryrefslogtreecommitdiff
path: root/spec/frontend/helpers/fake_request_animation_frame.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/helpers/fake_request_animation_frame.js')
-rw-r--r--spec/frontend/helpers/fake_request_animation_frame.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/frontend/helpers/fake_request_animation_frame.js b/spec/frontend/helpers/fake_request_animation_frame.js
deleted file mode 100644
index f6fc29df4dc..00000000000
--- a/spec/frontend/helpers/fake_request_animation_frame.js
+++ /dev/null
@@ -1,12 +0,0 @@
-export const useFakeRequestAnimationFrame = () => {
- let orig;
-
- beforeEach(() => {
- orig = global.requestAnimationFrame;
- global.requestAnimationFrame = cb => cb();
- });
-
- afterEach(() => {
- global.requestAnimationFrame = orig;
- });
-};