From e78034e5ec98fed1eca3194a2734793bfa6d3e08 Mon Sep 17 00:00:00 2001 From: Shenoy Pratik Date: Thu, 4 Jan 2024 16:42:52 -0800 Subject: [PATCH] history.push jest function added Signed-off-by: Shenoy Pratik --- .../components/notebooks/components/__tests__/notebook.test.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/public/components/notebooks/components/__tests__/notebook.test.tsx b/public/components/notebooks/components/__tests__/notebook.test.tsx index e0462821ad..f8f0c209fc 100644 --- a/public/components/notebooks/components/__tests__/notebook.test.tsx +++ b/public/components/notebooks/components/__tests__/notebook.test.tsx @@ -56,6 +56,7 @@ describe(' spec', () => { location.search = ''; const history = jest.fn() as any; history.replace = jest.fn(); + history.push = jest.fn(); it('renders the empty component and test reporting action button', async () => { httpClient.get = jest.fn(() => Promise.resolve((emptyNotebook as unknown) as HttpResponse));