Sha256: 43ad02f3564f90053113442933c26d83e656a6ddf81f66e7524f174b3b591066
Contents?: true
Size: 715 Bytes
Versions: 10
Compression:
Stored size: 715 Bytes
Contents
import { testReducerSnapshotWithFixtures } from 'react-redux-test-utils'; 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
10 entries across 10 versions & 1 rubygems