Sha256: 37297c7e4ab30acfd5a5417129497e00734a6d9e96fae06f4163f4637b649640
Contents?: true
Size: 826 Bytes
Versions: 95
Compression:
Stored size: 826 Bytes
Contents
import { testReducerSnapshotWithFixtures } from '@theforeman/test'; 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
95 entries across 95 versions & 1 rubygems