[arvados] updated: 2.7.0-6422-g56d19bb479

git repository hosting git at public.arvados.org
Fri Apr 19 14:59:28 UTC 2024


Summary of changes:
 .../src/views-components/auto-logout/auto-logout.test.tsx          | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

       via  56d19bb479c4b8cc175917d9ba867eba83bb3756 (commit)
      from  73d6304270e77b662bff5206a8a0667c02361ec7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 56d19bb479c4b8cc175917d9ba867eba83bb3756
Author: Lisa Knox <lisaknox83 at gmail.com>
Date:   Fri Apr 19 10:55:27 2024 -0400

    21037: moved entire beforeall into beforeeach in auto-logaout spec Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>

diff --git a/services/workbench2/src/views-components/auto-logout/auto-logout.test.tsx b/services/workbench2/src/views-components/auto-logout/auto-logout.test.tsx
index 3be400f7c5..28084ed1c1 100644
--- a/services/workbench2/src/views-components/auto-logout/auto-logout.test.tsx
+++ b/services/workbench2/src/views-components/auto-logout/auto-logout.test.tsx
@@ -15,14 +15,11 @@ describe('<AutoLogoutComponent />', () => {
     const lastWarningDuration = 60;
     const eventListeners = {};
 
-    beforeAll(() => {
+    beforeEach(() => {
+        jest.useFakeTimers();
         window.addEventListener = jest.fn((event, cb) => {
             eventListeners[event] = cb;
         });
-    });
-
-    beforeEach(() => {
-        jest.useFakeTimers();
         props = {
             sessionIdleTimeout: sessionIdleTimeout,
             lastWarningDuration: lastWarningDuration,

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list