Sha256: f660e6e2516ca6c2ad583a3a4090122bb7b018d085aeff7d98c5e3754ce4ead7

Contents?: true

Size: 955 Bytes

Versions: 2

Compression:

Stored size: 955 Bytes

Contents

import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';

import {
  selectScmType,
  selectPath,
  selectGitCommit,
  selectGitUrl,
} from '../SyncGitRepoSelectors';

import { syncGitRepoConfData1 } from '../__fixtures__/syncGitRepoConfData1.fixtures';

const stateFactory = obj => ({
  foremanAcd: {
    syncGitRepoConf: obj,
  },
});

const fixtures = {
  'should return scmType from syncGitRepoConfData1 fixtures': () =>
    selectScmType(stateFactory(syncGitRepoConfData1)),
  'should return path from syncGitRepoConfData1 fixtures': () =>
    selectPath(stateFactory(syncGitRepoConfData1)),
  'should return gitCommit from syncGitRepoConfData1 fixtures': () =>
    selectGitCommit(stateFactory(syncGitRepoConfData1)),
  'should return gitUrl from syncGitRepoConfData1 fixtures': () =>
    selectGitUrl(stateFactory(syncGitRepoConfData1)),
};

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_acd-0.11.0 webpack/components/SyncGitRepo/__tests__/SyncGitRepoSelectors.test.js
foreman_acd-0.10.0 webpack/components/SyncGitRepo/__tests__/SyncGitRepoSelectors.test.js