@@ -489,6 +489,7 @@ describe('SubscriptionUtils', () => {
489
489
[ `${ ONYXKEYS . COLLECTION . POLICY } ${ policyID } ` as const ] : {
490
490
...createRandomPolicy ( Number ( policyID ) ) ,
491
491
ownerAccountID,
492
+ type : CONST . POLICY . TYPE . TEAM ,
492
493
} ,
493
494
[ ONYXKEYS . NVP_FIRST_DAY_FREE_TRIAL ] : null ,
494
495
[ ONYXKEYS . NVP_LAST_DAY_FREE_TRIAL ] : null ,
@@ -502,18 +503,20 @@ describe('SubscriptionUtils', () => {
502
503
[ `${ ONYXKEYS . COLLECTION . POLICY } ${ policyID } ` as const ] : {
503
504
...createRandomPolicy ( Number ( policyID ) ) ,
504
505
ownerAccountID,
506
+ type : CONST . POLICY . TYPE . TEAM ,
505
507
} ,
506
508
[ ONYXKEYS . NVP_BILLING_FUND_ID ] : 8010 ,
507
509
} ) ;
508
510
expect ( shouldShowDiscountBanner ( ) ) . toBeFalsy ( ) ;
509
511
} ) ;
510
512
511
- it . skip ( 'should return true if the date is before the free trial end date or within the 8 days from the trial start date' , async ( ) => {
513
+ it ( 'should return true if the date is before the free trial end date or within the 8 days from the trial start date' , async ( ) => {
512
514
await Onyx . multiSet ( {
513
515
[ ONYXKEYS . SESSION ] : { accountID : ownerAccountID } ,
514
516
[ `${ ONYXKEYS . COLLECTION . POLICY } ${ policyID } ` as const ] : {
515
517
...createRandomPolicy ( Number ( policyID ) ) ,
516
518
ownerAccountID,
519
+ type : CONST . POLICY . TYPE . TEAM ,
517
520
} ,
518
521
[ ONYXKEYS . NVP_FIRST_DAY_FREE_TRIAL ] : formatDate ( subDays ( new Date ( ) , 1 ) , CONST . DATE . FNS_DATE_TIME_FORMAT_STRING ) ,
519
522
[ ONYXKEYS . NVP_LAST_DAY_FREE_TRIAL ] : formatDate ( addDays ( new Date ( ) , 10 ) , CONST . DATE . FNS_DATE_TIME_FORMAT_STRING ) ,
0 commit comments