Sha256: c1c4d05910f715634f7d137505fd0140aff5f99cce94c3aa1fca8c6138f42ff7

Contents?: true

Size: 450 Bytes

Versions: 20

Compression:

Stored size: 450 Bytes

Contents

export const API = {
  get: jest.fn(),
  put: jest.fn(),
  post: jest.fn(),
  delete: jest.fn(),
  patch: jest.fn(),
};

export const get = data => ({ type: 'get-some-type', ...data });
export const post = data => ({ type: 'post-some-type', ...data });
export const put = data => ({ type: 'put-some-type', ...data });
export const patch = data => ({ type: 'patch-some-type', ...data });

export const APIActions = {
  get,
  post,
  put,
  patch,
};

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
foreman_remote_execution-13.2.8 webpack/__mocks__/foremanReact/redux/API/index.js
foreman_remote_execution-15.0.2 webpack/__mocks__/foremanReact/redux/API/index.js
foreman_remote_execution-15.0.1 webpack/__mocks__/foremanReact/redux/API/index.js
foreman_remote_execution-13.2.7 webpack/__mocks__/foremanReact/redux/API/index.js
foreman_remote_execution-15.0.0 webpack/__mocks__/foremanReact/redux/API/index.js
foreman_remote_execution-14.1.4 webpack/__mocks__/foremanReact/redux/API/index.js
foreman_remote_execution-14.1.3 webpack/__mocks__/foremanReact/redux/API/index.js
foreman_remote_execution-14.1.2 webpack/__mocks__/foremanReact/redux/API/index.js
foreman_remote_execution-14.1.1 webpack/__mocks__/foremanReact/redux/API/index.js
foreman_remote_execution-14.1.0 webpack/__mocks__/foremanReact/redux/API/index.js
foreman_remote_execution-14.0.2 webpack/__mocks__/foremanReact/redux/API/index.js
foreman_remote_execution-14.0.1 webpack/__mocks__/foremanReact/redux/API/index.js
foreman_remote_execution-13.2.6 webpack/__mocks__/foremanReact/redux/API/index.js
foreman_remote_execution-14.0.0 webpack/__mocks__/foremanReact/redux/API/index.js
foreman_remote_execution-13.2.5 webpack/__mocks__/foremanReact/redux/API/index.js
foreman_remote_execution-13.2.4 webpack/__mocks__/foremanReact/redux/API/index.js
foreman_remote_execution-13.2.3 webpack/__mocks__/foremanReact/redux/API/index.js
foreman_remote_execution-13.2.2 webpack/__mocks__/foremanReact/redux/API/index.js
foreman_remote_execution-13.2.1 webpack/__mocks__/foremanReact/redux/API/index.js
foreman_remote_execution-13.2.0 webpack/__mocks__/foremanReact/redux/API/index.js