@@ -1348,9 +1348,9 @@ describe('SubscriptionUtils', () => {
13481348 } ,
13491349 } ;
13501350 // Test with canDowngrade as false (explicitly)
1351- expect ( shouldCalculateBillNewDot ( false , policies ) ) . toBeFalsy ( ) ;
1351+ expect ( shouldCalculateBillNewDot ( testUserAccountID , false , policies ) ) . toBeFalsy ( ) ;
13521352 // Test with canDowngrade as undefined (defaults to false in the function signature)
1353- expect ( shouldCalculateBillNewDot ( undefined , policies ) ) . toBeFalsy ( ) ;
1353+ expect ( shouldCalculateBillNewDot ( testUserAccountID , undefined , policies ) ) . toBeFalsy ( ) ;
13541354 } ) ;
13551355
13561356 it ( 'should return false if the user owns zero paid policies' , ( ) => {
@@ -1362,7 +1362,7 @@ describe('SubscriptionUtils', () => {
13621362 type : CONST . POLICY . TYPE . PERSONAL ,
13631363 } ,
13641364 } ;
1365- expect ( shouldCalculateBillNewDot ( true , policies ) ) . toBeFalsy ( ) ;
1365+ expect ( shouldCalculateBillNewDot ( testUserAccountID , true , policies ) ) . toBeFalsy ( ) ;
13661366 } ) ;
13671367
13681368 it ( 'should return false if the user owns more than one paid policy' , ( ) => {
@@ -1378,7 +1378,7 @@ describe('SubscriptionUtils', () => {
13781378 type : CONST . POLICY . TYPE . TEAM ,
13791379 } ,
13801380 } ;
1381- expect ( shouldCalculateBillNewDot ( true , policies ) ) . toBeFalsy ( ) ;
1381+ expect ( shouldCalculateBillNewDot ( testUserAccountID , true , policies ) ) . toBeFalsy ( ) ;
13821382 } ) ;
13831383
13841384 it ( 'should return true if canDowngrade is true and the user owns exactly one paid policy' , ( ) => {
@@ -1395,7 +1395,7 @@ describe('SubscriptionUtils', () => {
13951395 type : CONST . POLICY . TYPE . PERSONAL ,
13961396 } ,
13971397 } ;
1398- expect ( shouldCalculateBillNewDot ( true , policies ) ) . toBeTruthy ( ) ;
1398+ expect ( shouldCalculateBillNewDot ( testUserAccountID , true , policies ) ) . toBeTruthy ( ) ;
13991399 } ) ;
14001400
14011401 it ( 'should return false if the user owns exactly one paid policy but is not the owner' , ( ) => {
@@ -1408,7 +1408,7 @@ describe('SubscriptionUtils', () => {
14081408 type : CONST . POLICY . TYPE . CORPORATE ,
14091409 } ,
14101410 } ;
1411- expect ( shouldCalculateBillNewDot ( true , policies ) ) . toBeFalsy ( ) ;
1411+ expect ( shouldCalculateBillNewDot ( testUserAccountID , true , policies ) ) . toBeFalsy ( ) ;
14121412 } ) ;
14131413
14141414 it ( 'should return true if canDowngrade is true and the single paid policy is a team policy' , ( ) => {
@@ -1419,7 +1419,7 @@ describe('SubscriptionUtils', () => {
14191419 type : CONST . POLICY . TYPE . TEAM ,
14201420 } ,
14211421 } ;
1422- expect ( shouldCalculateBillNewDot ( true , policies ) ) . toBeTruthy ( ) ;
1422+ expect ( shouldCalculateBillNewDot ( testUserAccountID , true , policies ) ) . toBeTruthy ( ) ;
14231423 } ) ;
14241424
14251425 it ( 'should return true if canDowngrade is true and the single paid policy is a corporate policy' , ( ) => {
@@ -1430,11 +1430,11 @@ describe('SubscriptionUtils', () => {
14301430 type : CONST . POLICY . TYPE . CORPORATE ,
14311431 } ,
14321432 } ;
1433- expect ( shouldCalculateBillNewDot ( true , policies ) ) . toBeTruthy ( ) ;
1433+ expect ( shouldCalculateBillNewDot ( testUserAccountID , true , policies ) ) . toBeTruthy ( ) ;
14341434 } ) ;
14351435
14361436 it ( 'should return false when empty policies collection is passed' , ( ) => {
1437- expect ( shouldCalculateBillNewDot ( true , { } ) ) . toBeFalsy ( ) ;
1437+ expect ( shouldCalculateBillNewDot ( testUserAccountID , true , { } ) ) . toBeFalsy ( ) ;
14381438 } ) ;
14391439 } ) ;
14401440
0 commit comments