From 64013d21e6fc04a773660b6157ead395003a051b Mon Sep 17 00:00:00 2001 From: Judy Ng Date: Fri, 1 Mar 2024 13:28:54 -0500 Subject: [PATCH] Fix unit test for new way of get Signed-off-by: Judy Ng --- frontend/src/__tests__/ListClusters.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/__tests__/ListClusters.test.ts b/frontend/src/__tests__/ListClusters.test.ts index 430c1e02..50219c5e 100644 --- a/frontend/src/__tests__/ListClusters.test.ts +++ b/frontend/src/__tests__/ListClusters.test.ts @@ -23,9 +23,8 @@ const mockCluster2: ClusterInfoSummary = { const mockGet = jest.fn() jest.mock('axios', () => ({ - create: () => ({ - get: (...args: unknown[]) => mockGet(...args), - }), + get: (...args: unknown[]) => mockGet(...args), + create: (...args: unknown[]) => jest.fn(), })) describe('given a ListClusters command', () => {