Sha256: 3c06dc985d963b810ffc12098cd7a5e4299cb16693b9acaa5ff8a4e00b2d911a

Contents?: true

Size: 652 Bytes

Versions: 13

Compression:

Stored size: 652 Bytes

Contents

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

import AssignedRolesList from './AssignedRolesList';

const noop = () => {};

const fixtures = {
  'should render': {
    allAssignedRoles: [
      { id: 1, name: 'fake.role' },
      { id: 2, name: 'test.role' },
    ],
    assignedRoles: [
      { id: 1, name: 'fake.role' },
      { id: 2, name: 'test.role' },
    ],
    pagination: { page: 1, perPage: 25 },
    itemCount: 2,
    onPaginationChange: noop,
    onRemoveRole: noop,
    resourceName: 'host',
  },
};

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
foreman_ansible-6.1.1 webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js
foreman_ansible-6.0.2 webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js
foreman_ansible-6.1.0 webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js
foreman_ansible-6.0.1 webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js
foreman_ansible-5.1.3 webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js
foreman_ansible-6.0.0 webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js
foreman_ansible-5.1.2 webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js
foreman_ansible-5.1.1 webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js
foreman_ansible-5.1.0 webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js
foreman_ansible-5.0.1 webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js
foreman_ansible-4.0.5 webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js
foreman_ansible-4.0.4 webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js
foreman_ansible-5.0.0 webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js