Sha256: 3952db1fcc83d50a2b62603425509096a32ed57869f96670a447341090f15abf

Contents?: true

Size: 830 Bytes

Versions: 57

Compression:

Stored size: 830 Bytes

Contents

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

import AnsibleRolesSwitcher from '../AnsibleRolesSwitcher';

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

57 entries across 57 versions & 1 rubygems

Version Path
foreman_ansible-15.0.6 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-14.2.3 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-15.0.5 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-15.0.4 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-15.0.3 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-15.0.2 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-15.0.1 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-15.0.0 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-14.2.2 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-14.2.1 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-13.0.7 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-14.2.0 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-14.1.1 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-14.1.0 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-13.0.5 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-14.0.0 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-13.0.4 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-13.0.3 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-13.0.2 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js
foreman_ansible-13.0.1 webpack/components/AnsibleRolesSwitcher/__tests__/AnsibleRolesSwitcher.test.js