Skip to content

Commit 3a5fe93

Browse files
committed
test(billing): give the Sim Mailer entitlement fixtures the team organization the payer read now follows
1 parent 9dac3b9 commit 3a5fe93

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎apps/sim/lib/billing/core/inbox-entitlement.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ beforeEach(() => {
3333
id: 'workspace-1',
3434
billedAccountUserId: 'payer-1',
3535
organizationId: null,
36+
teamOrganizationId: null,
3637
})
3738
mockGetPersonalSubscription.mockResolvedValue(null)
3839
mockGetOrganizationSubscription.mockResolvedValue(null)
@@ -86,6 +87,7 @@ describe('Sim Mailer hosted entitlement', () => {
8687
id: 'workspace-1',
8788
billedAccountUserId: 'payer-1',
8889
organizationId: 'org-1',
90+
teamOrganizationId: 'org-1',
8991
})
9092
dbChainMockFns.limit.mockResolvedValueOnce([{ plan, status: 'active' }])
9193
mockGetOrganizationSubscription.mockResolvedValue({ plan, status: 'active' })
@@ -140,6 +142,7 @@ describe('Sim Mailer cleanup uncertainty', () => {
140142
id: 'workspace-1',
141143
billedAccountUserId: 'payer-1',
142144
organizationId: 'org-1',
145+
teamOrganizationId: 'org-1',
143146
})
144147
mockGetOrganizationSubscription.mockResolvedValue({ plan: 'team_25000', status: 'past_due' })
145148

0 commit comments

Comments
 (0)