MCPcopy Index your code
hub / github.com/freeCodeCamp/freeCodeCamp / generateMockSubCreate

Function generateMockSubCreate

api/src/routes/public/donate.test.ts:59–68  ·  view source on GitHub ↗
(status: string)

Source from the content-addressed store, hash-verified

57);
58const mockCustomerUpdate = vi.fn();
59const generateMockSubCreate = (status: string) => () =>
60 Promise.resolve({
61 id: testSubscriptionId,
62 latest_invoice: {
63 payment_intent: {
64 client_secret: 'superSecret',
65 status
66 }
67 }
68 });
69vi.mock('stripe', () => ({
70 default: class {
71 constructor() {}

Callers 1

donate.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected