Sha256: a757ae9a3a1e560e8fa4c4304735070739c9aeb228620748339eb6925b4c4f1e
Contents?: true
Size: 874 Bytes
Versions: 3
Compression:
Stored size: 874 Bytes
Contents
import { testReducerSnapshotWithFixtures } from '@theforeman/test'; import reducer from '../SyncButtonReducer'; import { syncHosts, disconnectHosts, error } from './SyncButtonFixtures'; import { INVENTORY_SYNC_REQUEST, INVENTORY_SYNC_SUCCESS, INVENTORY_SYNC_FAILURE, } from '../SyncButtonConstants'; const fixtures = { 'should return the initial state': {}, 'should handle INVENTORY_SYNC_REQUEST': { action: { type: INVENTORY_SYNC_REQUEST, payload: {}, }, }, 'should handle INVENTORY_SYNC_SUCCESS': { action: { type: INVENTORY_SYNC_SUCCESS, payload: { syncHosts, disconnectHosts }, }, }, 'should handle INVENTORY_SYNC_FAILURE': { action: { type: INVENTORY_SYNC_FAILURE, payload: { error }, }, }, }; describe('AccountList reducer', () => testReducerSnapshotWithFixtures(reducer, fixtures));
Version data entries
3 entries across 3 versions & 1 rubygems