Skip to content

Commit

Permalink
Refactor IngestionRecentRun.test.tsx to use spread operator for execu…
Browse files Browse the repository at this point in the history
…tionRuns
  • Loading branch information
Sachin-chaurasiya committed Jan 25, 2024
1 parent 5026326 commit 2d70857
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
});

Expand Down Expand Up @@ -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 },
});

Expand Down

0 comments on commit 2d70857

Please sign in to comment.