MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp /

Class

api/src/routes/protected/donate.test.ts:128–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126
127vi.mock('stripe', () => ({
128 default: class {
129 constructor() {}
130
131 customers = {
132 create: mockCustomerCreate,
133 update: mockCustomerUpdate
134 };
135
136 paymentMethods = {
137 attach: mockAttachPaymentMethod
138 };
139
140 subscriptions = {
141 create: mockSubCreate,
142 retrieve: mockSubRetrieve
143 };
144
145 checkout = {
146 sessions: {
147 create: mockCheckoutSessionCreate
148 }
149 };
150 }
151}));
152
153describe('Donate', () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected