[arvados] updated: 2.7.0-6418-g2037dc353d
git repository hosting
git at public.arvados.org
Fri Apr 19 13:28:16 UTC 2024
Summary of changes:
services/workbench2/src/store/auth/auth-middleware.test.ts | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
via 2037dc353ddfc0ae182189f69159ef00e637fba9 (commit)
from 193354f3e791fea340e58d01aacee8afcc195116 (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 2037dc353ddfc0ae182189f69159ef00e637fba9
Author: Lisa Knox <lisaknox83 at gmail.com>
Date: Fri Apr 19 09:28:07 2024 -0400
21037: fixed auth-middleware test Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>
diff --git a/services/workbench2/src/store/auth/auth-middleware.test.ts b/services/workbench2/src/store/auth/auth-middleware.test.ts
index 5a0364ebf9..259478fdc4 100644
--- a/services/workbench2/src/store/auth/auth-middleware.test.ts
+++ b/services/workbench2/src/store/auth/auth-middleware.test.ts
@@ -33,7 +33,9 @@ describe("AuthMiddleware", () => {
it("handles LOGOUT action", () => {
localStorage.setItem(API_TOKEN_KEY, 'someToken');
- window.location.assign = jest.fn();
+ Object.defineProperty(window, 'location', {
+ value: { assign: jest.fn(), href: 'http://localhost', protocol: 'http:', host: 'localhost'}
+ });
const next = jest.fn();
const middleware = authMiddleware(services)(store)(next);
middleware(authActions.LOGOUT({deleteLinkData: false, preservePath: false}));
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list