Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilianoSanchez committed Nov 12, 2024
1 parent 05f3f95 commit d3056c7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/__tests__/reducer.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { initialStatus, splitReducer } from '../reducer';
import { splitReady, splitReadyWithEvaluations, splitReadyFromCache, splitReadyFromCacheWithEvaluations, splitTimedout, splitUpdate, splitUpdateWithEvaluations, splitDestroy, addTreatments } from '../actions';
import { ISplitState } from '../types';
import SplitIO from '@splitsoftware/splitio/types/splitio';
import { AnyAction } from 'redux';

const initialState: ISplitState = {
Expand Down
1 change: 1 addition & 0 deletions src/__tests__/utils/mockBrowserSplitSdk.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { EventEmitter } from 'events';
import promiseWrapper from './promiseWrapper';
import SplitIO from '@splitsoftware/splitio/types/splitio';

export const Event = {
SDK_READY_TIMED_OUT: 'init::timeout',
Expand Down
1 change: 1 addition & 0 deletions src/__tests__/utils/mockNodeSplitSdk.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { EventEmitter } from 'events';
import promiseWrapper from './promiseWrapper';
import SplitIO from '@splitsoftware/splitio/types/splitio';

export const Event = {
SDK_READY_TIMED_OUT: 'init::timeout',
Expand Down
2 changes: 1 addition & 1 deletion src/asyncActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export function getTreatments(params: IGetTreatmentsParams): Action | (() => voi
} else { // Split SDK running in Node

// Evaluate Split and return redux action.
const client = splitSdk.factory.client() as unknown as SplitIO.IClient;
const client = splitSdk.factory.client() as SplitIO.IClient;
const treatments = splitNames ?
client.getTreatmentsWithConfig(params.key, splitNames, params.attributes) :
client.getTreatmentsWithConfigByFlagSets(params.key, flagSets, params.attributes);
Expand Down

0 comments on commit d3056c7

Please sign in to comment.