Sha256: 1cc83105d014728142ec61d3cac97941e2d8f5b956e37bf6bf5db663634c0db2
Contents?: true
Size: 832 Bytes
Versions: 10
Compression:
Stored size: 832 Bytes
Contents
import { testReducerSnapshotWithFixtures } from 'react-redux-test-utils'; import reducer from '../InsightsSettingsReducer'; import { INSIGHTS_SYNC_SETTING_SET, INSIGHTS_SYNC_SETTINGS_GET_SUCCESS, } from '../InsightsSettingsConstants'; const fixtures = { 'should return the initial state': {}, 'should handle INSIGHTS_SYNC_SETTINGS_GET_SUCCESS': { action: { type: INSIGHTS_SYNC_SETTINGS_GET_SUCCESS, payload: { settings: { insightsSyncEnabled: true, }, }, }, }, 'should handle INSIGHTS_SYNC_SETTING_SET': { action: { type: INSIGHTS_SYNC_SETTING_SET, payload: { settings: { insightsSyncEnabled: true, }, }, }, }, }; describe('InsightsSettings reducer', () => testReducerSnapshotWithFixtures(reducer, fixtures));
Version data entries
10 entries across 10 versions & 1 rubygems