From f5ff07e1eab265c8525cfb9f8e6b5555fa4a5de5 Mon Sep 17 00:00:00 2001 From: pamelin Date: Tue, 7 Feb 2023 14:47:46 +0000 Subject: [PATCH] fix: add ExecutionsTable and ExecutionPanel tests Signed-off-by: pamelin --- .../stackstorm/src/components/ActionsList/ActionsList.test.tsx | 2 -- .../stackstorm/src/components/PacksTable/PacksTable.test.tsx | 3 --- 2 files changed, 5 deletions(-) diff --git a/plugins/stackstorm/src/components/ActionsList/ActionsList.test.tsx b/plugins/stackstorm/src/components/ActionsList/ActionsList.test.tsx index 9f57d76ef3..b59d2f4132 100644 --- a/plugins/stackstorm/src/components/ActionsList/ActionsList.test.tsx +++ b/plugins/stackstorm/src/components/ActionsList/ActionsList.test.tsx @@ -54,8 +54,6 @@ const actions: Action[] = [ describe('ActionsList', () => { const mockApi: jest.Mocked = { - getExecutions: jest.fn().mockResolvedValue([]), - getExecution: jest.fn().mockResolvedValue({}), getPacks: jest.fn().mockResolvedValue(packs), getActions: jest.fn().mockResolvedValue(actions), } as any; diff --git a/plugins/stackstorm/src/components/PacksTable/PacksTable.test.tsx b/plugins/stackstorm/src/components/PacksTable/PacksTable.test.tsx index e0f922d211..b45d460068 100644 --- a/plugins/stackstorm/src/components/PacksTable/PacksTable.test.tsx +++ b/plugins/stackstorm/src/components/PacksTable/PacksTable.test.tsx @@ -33,10 +33,7 @@ const packs: Pack[] = [ describe('PacksTable', () => { const mockApi: jest.Mocked = { - getExecutions: jest.fn().mockResolvedValue([]), - getExecution: jest.fn().mockResolvedValue({}), getPacks: jest.fn().mockResolvedValue(packs), - getActions: jest.fn().mockResolvedValue([]), } as any; it('should render all packs', async () => {