Skip to content

Commit

Permalink
Fix deleted sub test
Browse files Browse the repository at this point in the history
  • Loading branch information
knolleary committed Sep 23, 2024
1 parent 0f42965 commit 3dfe86a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/forge/ee/routes/billing/index_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -750,10 +750,10 @@ describe('Billing routes', function () {
})

it('Handles cancellation for unknown teams but with a subscription (team manually deleted)', async () => {
const team = await app.factory.createTeam({ name: 'team-02' })
await app.factory.createSubscription(team, 'sub_unknown_123', 'cus_unknown_123')
await team.destroy()

await app.db.models.Subscription.create({
customer: 'cus_unknown_123',
subscription: 'sub_unknown_123'
})
const response = await (app.inject({
method: 'POST',
url: callbackURL,
Expand Down

0 comments on commit 3dfe86a

Please sign in to comment.