From 6fe94f6915458d6f3a2a06f7f8dfd136c1df0c97 Mon Sep 17 00:00:00 2001 From: Bohdan Tsymbala Date: Wed, 29 Jul 2020 19:25:52 +0200 Subject: [PATCH] Fixed tests. --- .../management/pages/policy/view/policy_details.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/security_solution/public/management/pages/policy/view/policy_details.test.tsx b/x-pack/plugins/security_solution/public/management/pages/policy/view/policy_details.test.tsx index f81620d439254..03ab32dcb2b66 100644 --- a/x-pack/plugins/security_solution/public/management/pages/policy/view/policy_details.test.tsx +++ b/x-pack/plugins/security_solution/public/management/pages/policy/view/policy_details.test.tsx @@ -259,7 +259,7 @@ describe('Policy Details', () => { expect(toastAddMock.calls).toHaveLength(1); expect(toastAddMock.calls[0][0]).toMatchObject({ title: 'Success!', - text: expect.any(Object), + text: expect.any(Function), }); }); it('should show an error notification toast if update fails', async () => { @@ -274,7 +274,7 @@ describe('Policy Details', () => { expect(toastAddMock.calls).toHaveLength(1); expect(toastAddMock.calls[0][0]).toMatchObject({ title: 'Failed!', - text: expect.any(Object), + text: expect.any(String), }); }); });