Skip to content

Commit 9f24db1

Browse files
committed
swap the invoiceitems order
1 parent 728e974 commit 9f24db1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -541,13 +541,13 @@ describe(c.blue('[TEST] api management'), () => {
541541
assert.equal(res.statusCode, 200);
542542
const stripe = new Stripe(STRIPE_SECRET);
543543

544-
await stripe.invoiceItems.create({
544+
const invoice = await stripe.invoices.create({
545545
customer: this.previousCustomer,
546-
price: 'price_1Lm1siCHN72mG1oKkk3Jh1JT', // test $123 one time
547546
});
548-
549-
const invoice = await stripe.invoices.create({
547+
await stripe.invoiceItems.create({
550548
customer: this.previousCustomer,
549+
price: 'price_1Lm1siCHN72mG1oKkk3Jh1JT', // test $123 one time
550+
invoice: invoice.id,
551551
});
552552

553553
await stripe.invoices.finalizeInvoice(invoice.id);

0 commit comments

Comments
 (0)