Sha256: 1273294df6807ed7d46c789d71b5fa20e9d262db40e8fc5680465620085d3389

Contents?: true

Size: 933 Bytes

Versions: 10

Compression:

Stored size: 933 Bytes

Contents

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

import {
  importTemplates,
  exportTemplates,
} from '../__fixtures__/templateSyncResult.fixtures';
import TemplateSyncResult from '../TemplateSyncResult';

const fixtures = {
  'should render export result': {
    syncResult: {
      resultAction: 'export',
      templates: exportTemplates,
      repo: 'https://github.com/theforeman/community-templates.git',
      branch: 'master',
      gitUser: 'Admin',
    },
    history: {},
  },
  'should render empty state when no templates synced': {
    syncResult: {
      templates: [],
    },
    history: {},
  },
  'should render import result': {
    syncResult: {
      resultAction: 'import',
      templates: importTemplates,
      repo: '/home/vagrant/templates',
    },
    history: {},
  },
};

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

Version data entries

10 entries across 10 versions & 1 rubygems

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