Files
freeCodeCamp/client/src/utils/analyticsStrings.test.ts
Ahmad Abdolsaheb bff61255f9 feat(donation): simplify donation client (#46379)
* feat: unify post payment actions

* feat: handle stripe card error and add donation after auth

* feat: add donation saga stripe test

* feat: add more coverage to stripe tests

* feat: add initial stripe card saga test

* feat: finalize initial stripe card saga test

* feat: add patreon test saga

* feat: test clean up

* feat: do not show processing for Patreon

* feat: normalize donation settings

* feat: turn payment provider/contex to enum

* feat: remove donation-settings.js

* fix: git ignore generated config

* fix: ignore the generate config from everything

* fix: remove types.js

* fix: update linting to include types.js

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2022-12-20 18:03:06 +05:30

15 lines
531 B
TypeScript

import { stringifyDonationEvents } from './analyticsStrings';
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'
);
});
});