mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-27 20:01:56 -04:00
* 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>
15 lines
531 B
TypeScript
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'
|
|
);
|
|
});
|
|
});
|