Skip to content

Commit

Permalink
Updates tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-haripriyan committed Dec 1, 2023
1 parent 7afc243 commit c0e7241
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/chargebee_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,11 @@ void main() {

group('purchaseProduct', () {
final map = <String, dynamic>{'unit': 'year', 'numberOfUnits': 1};
final offer = Offer('offerId', 10, '10', SubscriptionPeriod.fromMap(map));
final androidProduct = Product(
'merchant.pro.android',
'base.product',
'offerId',
offer,
'offerToken',
1500.00,
'1500.00',
Expand Down Expand Up @@ -845,10 +846,11 @@ void main() {

group('purchaseNonSubscriptionProduct', () {
final map = <String, dynamic>{'unit': 'year', 'numberOfUnits': 1};
final offer = Offer('offerId', 10, '10', SubscriptionPeriod.fromMap(map));
final product = Product(
'merchant.pro.android',
'base.product',
'offerId',
offer,
'offerToken',
1500.00,
'1500.00',
Expand Down Expand Up @@ -1022,10 +1024,11 @@ void main() {
});

group('validateReceiptForNonSubscriptions', () {
final offer = Offer('offerId', 10, '10', SubscriptionPeriod.fromMap({'periodUnit': 'month', 'numberOfUnits': 1}));
final product = Product(
'merchant.pro.android',
'base.product',
'offerId',
offer,
'offerToken',
1500.00,
'1500.00',
Expand Down

0 comments on commit c0e7241

Please sign in to comment.