From a3a890a2d23fc8b1bdb6223d6d1ed20c2b15aeb5 Mon Sep 17 00:00:00 2001 From: restrry Date: Fri, 29 Nov 2019 17:34:47 +0100 Subject: [PATCH] fix test in security due to updated mocks; --- x-pack/plugins/security/public/session/session_timeout.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/security/public/session/session_timeout.test.tsx b/x-pack/plugins/security/public/session/session_timeout.test.tsx index eb947ab95c43b..eca3e7d6727df 100644 --- a/x-pack/plugins/security/public/session/session_timeout.test.tsx +++ b/x-pack/plugins/security/public/session/session_timeout.test.tsx @@ -124,7 +124,7 @@ describe('Session Timeout', () => { }); test(`starts and does not initialize on an anonymous path`, async () => { - http.anonymousPaths.register(window.location.pathname); + http.anonymousPaths.isAnonymous.mockReturnValue(true); await sessionTimeout.start(); // eslint-disable-next-line dot-notation expect(sessionTimeout['channel']).toBeUndefined();