/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ import { ActionTypeRegistryContract } from './types'; const createActionTypeRegistryMock = () => { const mocked: jest.Mocked = { has: jest.fn(), register: jest.fn(), get: jest.fn(), list: jest.fn(), ensureActionTypeEnabled: jest.fn(), isActionTypeEnabled: jest.fn(), isActionExecutable: jest.fn(), }; return mocked; }; export const actionTypeRegistryMock = { create: createActionTypeRegistryMock, };