mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-14 16:00:40 -04:00
15 lines
532 B
TypeScript
15 lines
532 B
TypeScript
import { stringifyDonationEvents } from './analytics-strings';
|
|
|
|
describe('Analytics donation strings', () => {
|
|
it('Should return correct string for modal patreon payment', () => {
|
|
expect(stringifyDonationEvents('modal', 'patreon')).toEqual(
|
|
'Modal Patreon Payment Redirection'
|
|
);
|
|
});
|
|
it('Should return correct string for modal donate page stripe card payment', () => {
|
|
expect(stringifyDonationEvents('donate page', 'stripe card')).toEqual(
|
|
'Donate Page Stripe Card Payment Submission'
|
|
);
|
|
});
|
|
});
|