We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 728e974 commit 9f24db1Copy full SHA for 9f24db1
1 file changed
test/test.ts
@@ -541,13 +541,13 @@ describe(c.blue('[TEST] api management'), () => {
541
assert.equal(res.statusCode, 200);
542
const stripe = new Stripe(STRIPE_SECRET);
543
544
- await stripe.invoiceItems.create({
+ const invoice = await stripe.invoices.create({
545
customer: this.previousCustomer,
546
- price: 'price_1Lm1siCHN72mG1oKkk3Jh1JT', // test $123 one time
547
});
548
-
549
- const invoice = await stripe.invoices.create({
+ await stripe.invoiceItems.create({
550
+ price: 'price_1Lm1siCHN72mG1oKkk3Jh1JT', // test $123 one time
+ invoice: invoice.id,
551
552
553
await stripe.invoices.finalizeInvoice(invoice.id);
0 commit comments