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), }); }); });