18 |
Long text. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium amet, consectetur culpa doloremque ex, exercitationem harum illum in ipsa ipsum, modi natus nemo odio perferendis quaerat quis similique sint tempore.
19 |
--------------------------------------------------------------------------------
/tests/unit/components/pages/donation_form/PaymentSummary.spec.ts:
--------------------------------------------------------------------------------
1 | import { mount } from '@vue/test-utils';
2 | import PaymentSummary from '@src/components/pages/donation_form/PaymentSummary.vue';
3 |
4 | describe( 'PaymentSummary.vue', () => {
5 | it( 'renders the payment summary with paymentType', () => {
6 | const wrapper = mount( PaymentSummary, {
7 | props: {
8 | amount: 50,
9 | interval: 'monthly',
10 | paymentType: 'Credit Card',
11 | },
12 | } );
13 |
14 | expect( wrapper.find( '.callout' ).html() ).toContain(
15 | 'donation_form_payment_summary'
16 | );
17 | } );
18 |
19 | it( 'renders the payment summary with paymentType', () => {
20 | const wrapper = mount( PaymentSummary, {
21 | props: {
22 | amount: 41.3,
23 | interval: 'yearly',
24 | },
25 | } );
26 |
27 | expect( wrapper.find( '.callout' ).html() ).toContain(
28 | 'donation_form_payment_summary_payment_type_missing'
29 | );
30 | } );
31 | } );
32 |
--------------------------------------------------------------------------------
/src/pattern_library/patterns/donation-comment/Examples.vue:
--------------------------------------------------------------------------------
1 |