Skip to content

Commit

Permalink
Improve coverage of analyticsEventToGoogleAnalyticsEvent function (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisAntaki authored Nov 10, 2023
1 parent 9d6c6e3 commit 133599c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/runtime/event-type-mapping-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

0 comments on commit 133599c

Please sign in to comment.