Sha256: a287d95a90bd93bbec72408ea25da6e489e9bfcb47657e349f1f39eacf1480bf

Contents?: true

Size: 223 Bytes

Versions: 90

Compression:

Stored size: 223 Bytes

Contents

const modalOpen = true;
const setModalOpen = jest.fn();
const setModalClosed = jest.fn();

export const useForemanModal = jest.fn(() => ({
  modalOpen,
  setModalOpen,
  setModalClosed,
}));
export default useForemanModal;

Version data entries

90 entries across 90 versions & 3 rubygems

Version Path
foreman_webhooks-0.0.1 webpack/__mocks__/foremanReact/components/ForemanModal/ForemanModalHooks.js
foreman-tasks-2.0.3 webpack/__mocks__/foremanReact/components/ForemanModal/ForemanModalHooks.js
foreman-tasks-3.0.3 webpack/__mocks__/foremanReact/components/ForemanModal/ForemanModalHooks.js
foreman-tasks-3.0.2 webpack/__mocks__/foremanReact/components/ForemanModal/ForemanModalHooks.js
foreman-tasks-3.0.1 webpack/__mocks__/foremanReact/components/ForemanModal/ForemanModalHooks.js
foreman-tasks-3.0.0 webpack/__mocks__/foremanReact/components/ForemanModal/ForemanModalHooks.js
foreman-tasks-2.0.2 webpack/__mocks__/foremanReact/components/ForemanModal/ForemanModalHooks.js
foreman-tasks-2.0.1 webpack/__mocks__/foremanReact/components/ForemanModal/ForemanModalHooks.js
foreman-tasks-2.0.0 webpack/__mocks__/foremanReact/components/ForemanModal/ForemanModalHooks.js
foreman-tasks-1.2.0 webpack/__mocks__/foremanReact/components/ForemanModal/ForemanModalHooks.js