Sha256: 9a2fa7dc40748305c731134ec657e5089339be4531b706ef909beaf32e908132

Contents?: true

Size: 387 Bytes

Versions: 2

Compression:

Stored size: 387 Bytes

Contents

import { transformAnsiblePlaybook } from '../ApplicationDefinitionHelper';

describe('transformAnsiblePlaybook()', () => {
  const playbook = {
    id: 42,
    name: "Don't Panic",
  };

  it('returns empty playbook for invalid input', () => {
    expect(transformAnsiblePlaybook(playbook)).toEqual({
      id: playbook.id,
      name: playbook.name,
      groups: {},
    });
  });
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_acd-0.11.0 webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionHelper.test.js
foreman_acd-0.10.0 webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionHelper.test.js