You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expect(sdkReadyResolvePromiseCall[0]).toBe(SDK_READY);// A one time only subscription is on the SDK_READY event, for resolving the full blown whenReady promise and to check for callbacks warning.
74
-
expect(sdkReadyRejectPromiseCall[0]).toBe(SDK_READY_TIMED_OUT);// A one time only subscription is also on the SDK_READY_TIMED_OUT event, for rejecting the full blown whenReady promise.
75
-
expect(sdkReadyFromCacheListenersCheckCall[0]).toBe(SDK_READY_FROM_CACHE);// A one time only subscription is on the SDK_READY_FROM_CACHE event, to log the event and update internal state.
74
+
expect(sdkReadyResolvePromiseCall[0]).toBe(SDK_READY);// A one time only subscription is on the SDK_READY event
75
+
expect(sdkReadyRejectPromiseCall[0]).toBe(SDK_READY_TIMED_OUT);// A one time only subscription is also on the SDK_READY_TIMED_OUT event
76
+
expect(sdkReadyFromCacheListenersCheckCall[0]).toBe(SDK_READY_FROM_CACHE);// A one time only subscription is on the SDK_READY_FROM_CACHE event
76
77
77
78
expect(gateMock.on).toBeCalledTimes(2);// It should also add two persistent listeners
constTIMEOUT_ERROR=newError('Split SDK has emitted SDK_READY_TIMED_OUT event.');
11
+
constTIMEOUT_ERROR=newError(SDK_READY_TIMED_OUT);
12
12
13
13
/**
14
14
* SdkReadinessManager factory, which provides the public status API of SDK clients and manager: ready promise, readiness event emitter and constants (SDK_READY, etc).
0 commit comments