Skip to content

Commit bc88c1f

Browse files
committed
fix(test): ✅ fix test
1 parent 3e79ece commit bc88c1f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/build-payment-url.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { VNPay } from '../src/vnpay';
2-
import { VnpLocale, VnpOrderType } from '../src/enums';
2+
import { VnpLocale } from '../src/enums';
3+
import { ProductCode } from '../src/constants';
34
import { BuildPaymentUrl } from '../src/types';
45
import { dateFormat } from '../src/utils';
56

@@ -21,7 +22,7 @@ describe('buildPaymentUrl', () => {
2122
vnp_ReturnUrl: 'https://example.com/return',
2223
vnp_CurrCode: 'VND',
2324
vnp_Locale: VnpLocale.VN,
24-
vnp_OrderType: VnpOrderType.OTHER,
25+
vnp_OrderType: ProductCode.Other,
2526
vnp_BankCode: 'NCB',
2627
vnp_CreateDate: 20210101070000,
2728
};

0 commit comments

Comments
 (0)