Sha256: e5fde188423cdca0d7e9e44c47ddb6ab2bae8149ca8ca1ae7b5bdf628a326fd7
Contents?: true
Size: 990 Bytes
Versions: 16
Compression:
Stored size: 990 Bytes
Contents
import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils'; import { inventoryStateWrapper } from '../../../../../../ForemanRhCloudTestHelpers'; import { status, error, syncHosts, disconnectHosts, } from './SyncButtonFixtures'; import { selectInventorySync, selectStatus, selectError, selectSyncHosts, selectDisconnectHosts, } from '../SyncButtonSelectors'; const state = inventoryStateWrapper({ inventorySync: { status, error, syncHosts, disconnectHosts, }, }); const fixtures = { 'should return InventorySync': () => selectInventorySync(state), 'should return InventorySync status': () => selectStatus(state), 'should return InventorySync error': () => selectError(state), 'should return InventorySync SyncHosts': () => selectSyncHosts(state), 'should return InventorySync disconnectHosts': () => selectDisconnectHosts(state), }; describe('SyncButton selectors', () => testSelectorsSnapshotWithFixtures(fixtures));
Version data entries
16 entries across 16 versions & 1 rubygems