Sha256: 36636c24209815db37636d2fb31a58b49d8222f239d4cdff4d3841fb8b867285

Contents?: true

Size: 682 Bytes

Versions: 33

Compression:

Stored size: 682 Bytes

Contents

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

import AnsibleRole from './AnsibleRole';

const noop = () => {};

const fixtures = {
  'should render a role to add': {
    role: { name: 'test.role', id: 5 },
    icon: 'fa fa-plus-circle',
    onClick: noop,
  },
  'should render a role to remove': {
    role: { name: 'test.role', id: 5 },
    icon: 'fa fa-minus-circle',
    onClick: noop,
  },
  'should render inherited role to remove': {
    role: { name: 'test.role', id: 5, inherited: true },
    icon: 'fa fa-minus-circle',
    onClick: noop,
  },
};

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

Version data entries

33 entries across 33 versions & 1 rubygems

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