diff --git a/src/runtime/event-type-mapping-test.js b/src/runtime/event-type-mapping-test.js index f7bd7bdf44..e8d89d027b 100644 --- a/src/runtime/event-type-mapping-test.js +++ b/src/runtime/event-type-mapping-test.js @@ -167,4 +167,13 @@ describes.realWin('analyticsEventToGoogleAnalyticsEvent', () => { ]; expect(actual).to.be.equal(expected); }); + + it('returns undefined when event is falsy', () => { + const actual = analyticsEventToGoogleAnalyticsEvent( + null, + SubscriptionFlows.CONTRIBUTE + ); + const expected = undefined; + expect(actual).to.be.equal(expected); + }); });