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-12.0.5 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-10.4.3 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-12.0.4 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-10.4.2 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-12.0.3 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-12.0.2 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-12.0.1 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-12.0.0 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-11.2.1 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-7.1.7 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-11.2.0 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-11.1.2 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-7.1.6 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-11.1.1 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-10.4.1 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-7.1.5 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-11.1.0 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-10.4.0 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-10.3.0 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js
foreman_ansible-11.0.0 webpack/components/AnsibleRolesSwitcher/components/AnsibleRole.test.js