Sha256: 1745b5902cb5011db241cf6e2cd0706b77950be45cd08a8c61a50a8e8b277823

Contents?: true

Size: 898 Bytes

Versions: 13

Compression:

Stored size: 898 Bytes

Contents

import { testComponentSnapshotsWithFixtures } from '@theforeman/test';

import AnsibleRolesSwitcher from '../AnsibleRolesSwitcher';

jest.mock('foremanReact/components/Pagination/PaginationWrapper');

const noop = () => {};

const fixtures = {
  'should render': {
    loading: false,
    pagination: { page: 1, perPage: 12 },
    itemCount: 20,
    addAnsibleRole: noop,
    removeAnsibleRole: noop,
    moveAnsibleRole: noop,
    getAnsibleRoles: noop,
    changeAssignedPage: noop,
    assignedPagination: { page: 1, perPage: 12 },
    assignedRolesCount: 2,
    assignedRoles: [],
    unassignedRoles: [],
    initialAssignedRoles: [],
    error: { statusText: '', errorMsg: '' },
    allAssignedRoles: [],
    toDestroyRoles: [],
    availableRolesUrl: 'http://test/roles',
  },
};

describe('AnsibleRolesSwitcher', () =>
  testComponentSnapshotsWithFixtures(AnsibleRolesSwitcher, fixtures));

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
foreman_ansible-7.0.4 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-7.1.0 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-7.0.3 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-7.0.2 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-7.0.1 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-7.0.0 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-6.3.4 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-6.3.3 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-6.3.2 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-6.3.1 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-6.4.1 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-6.4.0 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-6.3.0 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js