Sha256: 8bce1e88f1da4bc9eb5bf66d381f64ba8a718a838c361c891b6d2c9c77f60f41

Contents?: true

Size: 717 Bytes

Versions: 65

Compression:

Stored size: 717 Bytes

Contents

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

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,
    onMoveRole: noop,
    resourceName: 'host',
    toDestroyRoles: [],
    unassignedRoles: [],
  },
};

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

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
foreman_ansible-6.3.2 webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js
foreman_ansible-6.3.1 webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js
foreman_ansible-6.4.1 webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js
foreman_ansible-6.4.0 webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js
foreman_ansible-6.3.0 webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js