Sha256: 50ed1126fa544089d83a0a8109cff594a63e276d1f26b3d5a87f2e7b2ea468c1

Contents?: true

Size: 912 Bytes

Versions: 32

Compression:

Stored size: 912 Bytes

Contents

const items = [
  {
    name: 'host',
    link: '/link',
    status: 'success',
    actions: [],
  },
  {
    name: 'host2',
    link: '/link2',
    status: 'success',
    actions: [],
  },
];

export const HostItemFixtures = {
  renders: {
    name: 'Host1',
    link: '/host1',
    status: 'success',
    actions: [],
  },
};

export const HostStatusFixtures = {
  renders: {
    status: 'success',
  },
};

export const TargetingHostsFixtures = {
  renders: {
    apiStatus: 'RESOLVED',
    items,
  },
  'renders with error': {
    apiStatus: 'ERROR',
    items,
  },
  'renders with loading': {
    apiStatus: 'PENDING',
    items: [],
  },
};

export const TargetingHostsPageFixtures = {
  renders: {
    handleSearch: () => {},
    searchQuery: '',
    apiStatus: 'RESOLVED',
    items,
    totalHosts: 1,
    pagination: {
      page: 1,
      perPage: 20,
    },
    handlePagination: () => {},
  },
};

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
foreman_remote_execution-5.0.8 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-5.0.7 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-5.0.6 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-6.2.0 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-5.0.5 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-6.1.0 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-5.0.4 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-5.0.3 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-6.0.0 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-5.0.2 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-5.1.0 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-5.0.1 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-5.0.0 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-4.8.0 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-4.5.6 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-4.5.5 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-4.5.4 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-4.7.0 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-4.5.3 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-4.5.2 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js