Sha256: bdef9a90bc0a08946366c4c79394e791b3d716b98a470536b25c185e21302078

Contents?: true

Size: 718 Bytes

Versions: 58

Compression:

Stored size: 718 Bytes

Contents

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

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,
    index: 0,
  },
  'should render a role to remove': {
    role: { name: 'test.role', id: 5 },
    icon: 'fa fa-minus-circle',
    onClick: noop,
    index: 0,
  },
  'should render inherited role to remove': {
    role: { name: 'test.role', id: 5, inherited: true },
    icon: 'fa fa-minus-circle',
    onClick: noop,
    index: 0,
  },
};

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

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
foreman_ansible-15.0.2 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-15.0.1 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-15.0.0 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-14.2.2 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-14.2.1 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-13.0.7 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-14.2.0 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-14.1.1 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-14.1.0 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-13.0.5 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-14.0.0 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-13.0.4 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-13.0.3 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-13.0.2 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-13.0.1 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-13.0.0 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-12.0.7 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-10.4.4 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-7.1.8 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-12.0.6 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js