Skip to content

Commit

Permalink
ci: fix enum type
Browse files Browse the repository at this point in the history
  • Loading branch information
coratgerl committed Sep 8, 2024
1 parent 822ec26 commit 2c4dde6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/wabe-stripe/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { describe, expect, it, mock, spyOn, beforeEach } from 'bun:test'
import { StripeAdapter } from '.'
import Stripe from 'stripe'
import { PaymentMode } from 'wabe'

const mockListCustomers = mock(() => {})
const mockCreateCustomer = mock(() => {})
Expand Down Expand Up @@ -105,7 +106,7 @@ describe('wabe-stripe', () => {
quantity: 1,
},
],
paymentMode: 'subscription',
paymentMode: PaymentMode.Subscription,
successUrl: 'https://wabe.dev',
cancelUrl: 'https://wabe.dev',
})
Expand Down Expand Up @@ -172,7 +173,7 @@ describe('wabe-stripe', () => {
quantity: 1,
},
],
paymentMode: 'subscription',
paymentMode: PaymentMode.Subscription,
successUrl: 'https://wabe.dev',
cancelUrl: 'https://wabe.dev',
}),
Expand Down
3 changes: 2 additions & 1 deletion packages/wabe/src/payment/PaymentController.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { describe, expect, it, mock } from 'bun:test'
import { PaymentController } from './PaymentController'
import { PaymentMode } from './interface'

describe('PaymentController', () => {
it("should call the adapter's createCustomer method", async () => {
Expand Down Expand Up @@ -66,7 +67,7 @@ describe('PaymentController', () => {
customerEmail: 'john@doe.com',
successUrl: 'https://example.com/success',
cancelUrl: 'https://example.com/cancel',
paymentMode: 'payment',
paymentMode: PaymentMode.Payment,
})

expect(mockCreatePayment).toHaveBeenCalledTimes(1)
Expand Down

0 comments on commit 2c4dde6

Please sign in to comment.