Sha256: 363053d77c8cea9eee83ee176cd6d0030df408195e65a0665b5463441cab823a

Contents?: true

Size: 804 Bytes

Versions: 33

Compression:

Stored size: 804 Bytes

Contents

import { testComponentSnapshotsWithFixtures } from 'react-redux-test-utils';

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,
    getAnsibleRoles: noop,
    changeAssignedPage: noop,
    assignedPagination: { page: 1, perPage: 12 },
    assignedRolesCount: 2,
    assignedRoles: [],
    unassignedRoles: [],
    data: {
      initialAssignedRoles: [],
    },
    error: { statusText: '', errorMsg: '' },
  },
};

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

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
foreman_ansible-6.1.1 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-6.0.2 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-6.1.0 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-6.0.1 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-5.1.3 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-6.0.0 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-5.1.2 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-5.1.1 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-5.1.0 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-4.0.3.5 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-4.0.3.4 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-4.0.3.3 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-4.0.3.2 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-5.0.1 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-4.0.5 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-4.0.3.1 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-4.0.4 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-5.0.0 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-4.0.3 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-4.0.2 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js