Sha256: 3fa5aa9be0677920027b1b9b3d8923370e2440f88d83597138959c45a985d277
Contents?: true
Size: 929 Bytes
Versions: 11
Compression:
Stored size: 929 Bytes
Contents
import { testReducerSnapshotWithFixtures } from '../../../move_to_pf/test-utils/testHelpers'; import { ORGANIZATION_PRODUCTS_REQUEST, ORGANIZATION_PRODUCTS_SUCCESS, ORGANIZATION_PRODUCTS_FAILURE, } from '../OrganizationProductsConstants'; import reducer from '../OrganizationProductsReducer'; const fixtures = { 'should return the initial state': {}, 'should handle ORGANIZATION_PRODUCTS_REQUEST': { action: { type: ORGANIZATION_PRODUCTS_REQUEST, }, }, 'should handle ORGANIZATION_PRODUCTS_SUCCESS': { action: { type: ORGANIZATION_PRODUCTS_SUCCESS, payload: { results: ['some', 'results'], }, }, }, 'should handle ORGANIZATION_PRODUCTS_FAILURE': { action: { type: ORGANIZATION_PRODUCTS_FAILURE, payload: new Error('some error'), }, }, }; describe('OrganizationProducts reducer', () => testReducerSnapshotWithFixtures(reducer, fixtures));
Version data entries
11 entries across 11 versions & 1 rubygems