Sha256: caaff23368f4a728cf81f545760db6ac84f1a3bf66e34abc8c1b4c85c774d46e
Contents?: true
Size: 1.09 KB
Versions: 10
Compression:
Stored size: 1.09 KB
Contents
import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils'; import { selectAccountsList, selectAccounts, selectPollingProcessID, selectAutoUploadEnabled, selectHostObfuscationEnabled, } from '../AccountListSelectors'; import { pollingProcessID, accounts, autoUploadEnabled, hostObfuscationEnabled, } from '../AccountList.fixtures'; import { rhCloudStateWrapper } from '../../../../ForemanRhCloudTestHelpers'; const state = rhCloudStateWrapper({ accountsList: { accounts, pollingProcessID, autoUploadEnabled, hostObfuscationEnabled, }, }); const fixtures = { 'should return AccountsList': () => selectAccountsList(state), 'should return AccountList accounts': () => selectAccounts(state), 'should return AccountList pollingProcessID': () => selectPollingProcessID(state), 'should return AccountList autoUploadEnabled': () => selectAutoUploadEnabled(state), 'should return AccountList hostObfuscationEnabled': () => selectHostObfuscationEnabled(state), }; describe('AccountList selectors', () => testSelectorsSnapshotWithFixtures(fixtures));
Version data entries
10 entries across 10 versions & 1 rubygems