Sha256: 953d7151e76c36b039f59ab7d25717a45171e4f3d2cbb7dadf30041cd15243ab

Contents?: true

Size: 662 Bytes

Versions: 10

Compression:

Stored size: 662 Bytes

Contents

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

import NewTemplateSync from '../NewTemplateSync';

jest.mock('foremanReact/routes/common/PageLayout/PageLayout');

const noop = () => {};

const commonFixture = {
  apiUrls: {},
  getSyncSettings: noop,
  validationData: {},
  userPermissions: {
    import: true,
    export: true,
  },
};

const fixtures = {
  'should render when loaded': {
    loadingSettings: false,
    ...commonFixture,
  },
  'should render when loading': {
    loadingSettings: true,
    ...commonFixture,
  },
};

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

Version data entries

10 entries across 10 versions & 1 rubygems

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