Sha256: e17763fd74ec05330c8acd0d6aec5ffaf169751ad3b8e190c845c33fc67e5b46

Contents?: true

Size: 710 Bytes

Versions: 10

Compression:

Stored size: 710 Bytes

Contents

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

import { expandableContent } from './helpers';

const fixtures = {
  'should return no errors': () => expandableContent({}),
  'should return additional info': () =>
    expandableContent({ additionalInfo: 'This is additional info' }),
  'should return additional error': () =>
    expandableContent({ additionalErrors: 'These are additional errors' }),
  'should return attribute errors': () =>
    expandableContent({
      errors: {
        base: ['could not be processed'],
        name: ["can't be blank", 'has invalid format'],
      },
    }),
};

describe('expandableContent', () =>
  testSelectorsSnapshotWithFixtures(fixtures));

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
foreman_templates-10.0.2 webpack/components/TemplateSyncResult/components/SyncedTemplate/helpers.test.js
foreman_templates-10.0.1 webpack/components/TemplateSyncResult/components/SyncedTemplate/helpers.test.js
foreman_templates-10.0.0 webpack/components/TemplateSyncResult/components/SyncedTemplate/helpers.test.js
foreman_templates-9.5.1 webpack/components/TemplateSyncResult/components/SyncedTemplate/helpers.test.js
foreman_templates-9.5.0 webpack/components/TemplateSyncResult/components/SyncedTemplate/helpers.test.js
foreman_templates-9.3.3 webpack/components/TemplateSyncResult/components/SyncedTemplate/helpers.test.js
foreman_templates-9.3.2 webpack/components/TemplateSyncResult/components/SyncedTemplate/helpers.test.js
foreman_templates-9.3.1 webpack/components/TemplateSyncResult/components/SyncedTemplate/helpers.test.js
foreman_templates-9.4.0 webpack/components/TemplateSyncResult/components/SyncedTemplate/helpers.test.js
foreman_templates-9.3.0 webpack/components/TemplateSyncResult/components/SyncedTemplate/helpers.test.js