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 ready 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 ready promise.
73
+
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
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.
76
76
77
77
expect(gateMock.on).toBeCalledTimes(2);// It should also add two persistent listeners
expect(loggerMock.warn).toBeCalledTimes(1);// If the SDK_READY event fires and we have no callbacks for it (neither event nor ready promise) we get a warning.
104
+
expect(loggerMock.warn).toBeCalledTimes(1);// If the SDK_READY event fires and we have no callbacks for it (neither event nor whenReady promise) we get a warning.
105
105
expect(loggerMock.warn).toBeCalledWith(CLIENT_NO_LISTENER);// Telling us there were no listeners and evaluations before this point may have been incorrect.
106
106
107
107
expect(loggerMock.info).toBeCalledTimes(1);// If the SDK_READY event fires, we get a info message.
expect(loggerMock.warn).toBeCalledWith(CLIENT_NO_LISTENER);// We should get a warning if the SDK get's ready before calling the ready method or attaching a listener to the ready event
282
+
expect(loggerMock.warn).toBeCalledWith(CLIENT_NO_LISTENER);// We should get a warning if the SDK get's ready before calling the whenReady method or attaching a listener to the ready event
0 commit comments