From ff3935c8d267e31ee55f79abcfdf34981626cebf Mon Sep 17 00:00:00 2001 From: Thomas Hutterer <thutterer@gitlab.com> Date: Mon, 30 Dec 2024 14:35:41 +0100 Subject: [PATCH] Remove no-op code We use fake timers by default, so this is a no-op and can be removed. --- spec/frontend/todos/components/todos_app_spec.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/spec/frontend/todos/components/todos_app_spec.js b/spec/frontend/todos/components/todos_app_spec.js index ab01313475ab..1e1871c8ee04 100644 --- a/spec/frontend/todos/components/todos_app_spec.js +++ b/spec/frontend/todos/components/todos_app_spec.js @@ -180,7 +180,6 @@ describe('TodosApp', () => { }); it('refetches todos one second after the cursor leaves the list of todos', async () => { - jest.useFakeTimers(); createComponent(); // Wait and account for initial query @@ -208,7 +207,6 @@ describe('TodosApp', () => { }); it('does not refresh todos after the cursor leaves the list of todos if nothing changed', async () => { - jest.useFakeTimers(); createComponent(); // Wait and account for initial query -- GitLab