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(fakeImpressionsCache.track).not.toBeCalled();// cache method should not be called by just creating a tracker
77
77
78
-
tracker.track([imp1,imp2,imp3]);
78
+
tracker.track([[imp1],[imp2],[imp3]]);
79
79
80
80
expect(fakeImpressionsCache.track.mock.calls[0][0]).toEqual([imp1,imp2,imp3]);// Should call the storage track method once we invoke .track() method, passing queued params in a sequence.
expect(fakeIntegrationsManager.handleImpression).not.toBeCalled();// The integrations manager handleImpression method should not be invoked if we haven't tracked impressions.
99
99
100
100
// We signal that we actually want to track the queued impressions.
expect(fakeImpressionsCache.track.mock.calls[0][0]).toEqual([fakeImpression,fakeImpression2]);// Even with a listener, impression should be sent to the cache
104
104
expect(fakeListener.logImpression).not.toBeCalled();// The listener should not be executed synchronously.
0 commit comments