From 2d708570fa64541270d7ef424db3839c56edafd9 Mon Sep 17 00:00:00 2001 From: Sachin Chaurasiya Date: Thu, 25 Jan 2024 16:34:06 +0530 Subject: [PATCH] Refactor IngestionRecentRun.test.tsx to use spread operator for executionRuns --- .../Ingestion/IngestionRecentRun/IngestionRecentRun.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Ingestion/IngestionRecentRun/IngestionRecentRun.test.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Ingestion/IngestionRecentRun/IngestionRecentRun.test.tsx index 8ff1cece3640..54674a8a418f 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Ingestion/IngestionRecentRun/IngestionRecentRun.test.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Ingestion/IngestionRecentRun/IngestionRecentRun.test.tsx @@ -233,7 +233,7 @@ describe('Test IngestionRecentRun component', () => { it('should show additional details for click on run', async () => { (getRunHistoryForPipeline as jest.Mock).mockResolvedValueOnce({ - data: executionRuns, + data: [...executionRuns], paging: { total: 4 }, }); @@ -266,7 +266,7 @@ describe('Test IngestionRecentRun component', () => { it('should show stacktrace when click on logs', async () => { (getRunHistoryForPipeline as jest.Mock).mockResolvedValueOnce({ - data: executionRuns, + data: [...executionRuns], paging: { total: 4 }, });