Sha256: 352f2195d9b83d48510a1f14404e01e37ba995a7438d31d8d7879f404da78395

Contents?: true

Size: 774 Bytes

Versions: 10

Compression:

Stored size: 774 Bytes

Contents

import { testComponentSnapshotsWithFixtures } from '@theforeman/test';
import SyncedTemplate from '../SyncedTemplate';
import {
  noName,
  epel,
  coreos,
  filteredOut,
} from '../../__fixtures__/templateSyncResult.fixtures';

const fixtures = {
  'should render template with invalid metadata': {
    template: noName,
    editPath: '',
  },
  'should render template with validation errors': {
    template: epel,
    editPath: '/templates/:id/edit',
  },
  'should render template without errros': {
    template: coreos,
    editPath: '/ptables/:id/edit',
  },
  'should render skipped template': {
    template: filteredOut,
    editPath: '/ptables/:id/edit',
  },
};

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

Version data entries

10 entries across 10 versions & 1 rubygems

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