Sha256: 2cb68b712ff97093cb777f511345becf4c9ea5cba41868fbd9dddc2807fbe14b

Contents?: true

Size: 780 Bytes

Versions: 12

Compression:

Stored size: 780 Bytes

Contents

import { testComponentSnapshotsWithFixtures } from 'react-redux-test-utils';
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

12 entries across 12 versions & 1 rubygems

Version Path
foreman_templates-9.2.0 webpack/components/TemplateSyncResult/components/__tests__/SyncedTemplate.test.js
foreman_templates-9.1.0 webpack/components/TemplateSyncResult/components/__tests__/SyncedTemplate.test.js
foreman_templates-9.0.2 webpack/components/TemplateSyncResult/components/__tests__/SyncedTemplate.test.js
foreman_templates-9.0.1 webpack/components/TemplateSyncResult/components/__tests__/SyncedTemplate.test.js
foreman_templates-9.0.0 webpack/components/TemplateSyncResult/components/__tests__/SyncedTemplate.test.js
foreman_templates-7.0.7 webpack/components/TemplateSyncResult/components/__tests__/SyncedTemplate.test.js
foreman_templates-8.0.0 webpack/components/TemplateSyncResult/components/__tests__/SyncedTemplate.test.js
foreman_templates-7.0.6 webpack/components/TemplateSyncResult/components/__tests__/SyncedTemplate.test.js
foreman_templates-7.0.5 webpack/components/TemplateSyncResult/components/__tests__/SyncedTemplate.test.js
foreman_templates-7.0.4 webpack/components/TemplateSyncResult/components/__tests__/SyncedTemplate.test.js
foreman_templates-7.0.3 webpack/components/TemplateSyncResult/components/__tests__/SyncedTemplate.test.js
foreman_templates-7.0.2 webpack/components/TemplateSyncResult/components/__tests__/SyncedTemplate.test.js