Skip to content

Commit

Permalink
fix: use existing Stripe test key env var
Browse files Browse the repository at this point in the history
found this in the organization secrets in GitHub, so let's re-use it
  • Loading branch information
travis committed Jan 30, 2024
1 parent 427ba57 commit d8ad82d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upload-api/test/billing.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async function setupCustomer(stripe, email) {
}

test('stripe plan can be updated', async (t) => {
const stripeSecretKey = process.env.STRIPE_TEST_SECRET_KEY
const stripeSecretKey = process.env.TESTING_STRIPE_TEST_PK
if (stripeSecretKey) {
const stripe = new Stripe(stripeSecretKey, { apiVersion: '2023-10-16' })
const billingProvider = createStripeBillingProvider(stripe)
Expand Down Expand Up @@ -88,6 +88,6 @@ test('stripe plan can be updated', async (t) => {
}
}
} else {
t.fail('STRIPE_TEST_SECRET_KEY environment variable is not set')
t.fail('TESTING_STRIPE_TEST_PK environment variable is not set')
}
})

0 comments on commit d8ad82d

Please sign in to comment.