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
72
72
73
-
tracker.track([imp1,imp2,imp3]);
73
+
tracker.track([[imp1],[imp2],[imp3]]);
74
74
75
75
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.
94
94
95
95
// 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
99
99
expect(fakeListener.logImpression).not.toBeCalled();// The listener should not be executed synchronously.
0 commit comments