Sha256: 073f1ea56ab9b0a7e2e9ba0569af7ebd492020066cc0b6ba57707eeb9b32693a
Contents?: true
Size: 709 Bytes
Versions: 14
Compression:
Stored size: 709 Bytes
Contents
import { testReducerSnapshotWithFixtures } from '@theforeman/test'; import reducer from '../SyncButtonReducer'; import { syncHosts, disconnectHosts } from './SyncButtonFixtures'; import { INVENTORY_SYNC_REQUEST, INVENTORY_SYNC_SUCCESS, } 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 }, }, }, }; describe('AccountList reducer', () => testReducerSnapshotWithFixtures(reducer, fixtures));
Version data entries
14 entries across 14 versions & 1 rubygems