Sha256: 3ac2030ad18bed0e47791d4b26724534e480c7cceefe893a215fe351cf56f8b3

Contents?: true

Size: 646 Bytes

Versions: 1

Compression:

Stored size: 646 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,
    resourceName: 'host',
  },
};

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman_ansible-6.2.0 webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js