Sha256: cfe3bd13a05f9dc1e8717499a68ef2376d07e226087ab1bf17d7991c533e6b3c

Contents?: true

Size: 337 Bytes

Versions: 5

Compression:

Stored size: 337 Bytes

Contents

jest.mock('foremanReact/Root/Context/ForemanContext', () => ({
  useForemanContext: () => ({ toasts: [] }),
}));
jest.mock('foremanReact/history', () => ({
  history: {
    action: 'PUSH',
    listen: jest.fn(),
    location: {
      pathname: '/webhooks',
      search: '',
    },
    push: jest.fn(),
    replace: jest.fn(),
  },
}));

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_webhooks-2.0.3 webpack/test_setup.js
foreman_webhooks-2.0.2 webpack/test_setup.js
foreman_webhooks-2.0.1 webpack/test_setup.js
foreman_webhooks-2.0.0 webpack/test_setup.js
foreman_webhooks-1.1.0 webpack/test_setup.js