Sha256: 8ddb0f5a9a1efe6658e83ee0b35189a2b056f623733775bfb0d5cef00e499059

Contents?: true

Size: 866 Bytes

Versions: 57

Compression:

Stored size: 866 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,
    page: 1,
    handlePagination: () => {},
  },
};

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
foreman_remote_execution-14.1.4 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-14.1.3 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-14.1.2 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-14.1.1 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-14.1.0 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-14.0.2 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-14.0.1 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-13.2.6 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-14.0.0 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-13.2.5 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-13.2.4 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-13.2.3 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-13.2.2 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-12.0.7 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-13.2.1 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-13.2.0 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-10.1.3 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-13.0.0 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-12.0.5 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js
foreman_remote_execution-12.0.4 webpack/react_app/components/TargetingHosts/__tests__/fixtures.js