(overrides: {
quantity?: number
priceId?: string
interval?: 'month' | 'year'
})
| 54 | } |
| 55 | |
| 56 | function stripeItem(overrides: { |
| 57 | quantity?: number |
| 58 | priceId?: string |
| 59 | interval?: 'month' | 'year' |
| 60 | }) { |
| 61 | return { |
| 62 | status: 'active', |
| 63 | items: { |
| 64 | data: [ |
| 65 | { |
| 66 | id: 'si_1', |
| 67 | quantity: overrides.quantity ?? 1, |
| 68 | price: { |
| 69 | id: overrides.priceId ?? 'price_pro_month', |
| 70 | recurring: { interval: overrides.interval ?? 'month' }, |
| 71 | }, |
| 72 | }, |
| 73 | ], |
| 74 | }, |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | describe('stripeSyncSubscriptionSeats outbox handler', () => { |
| 79 | beforeEach(() => { |
no outgoing calls
no test coverage detected