fix: add ExecutionsTable and ExecutionPanel tests
Signed-off-by: pamelin <pamelin@expediagroup.com>
This commit is contained in:
@@ -54,8 +54,6 @@ const actions: Action[] = [
|
||||
|
||||
describe('ActionsList', () => {
|
||||
const mockApi: jest.Mocked<StackStormApi> = {
|
||||
getExecutions: jest.fn().mockResolvedValue([]),
|
||||
getExecution: jest.fn().mockResolvedValue({}),
|
||||
getPacks: jest.fn().mockResolvedValue(packs),
|
||||
getActions: jest.fn().mockResolvedValue(actions),
|
||||
} as any;
|
||||
|
||||
@@ -33,10 +33,7 @@ const packs: Pack[] = [
|
||||
|
||||
describe('PacksTable', () => {
|
||||
const mockApi: jest.Mocked<StackStormApi> = {
|
||||
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 () => {
|
||||
|
||||
Reference in New Issue
Block a user