@@ -112,19 +112,19 @@ describe('useGoalData', () => {
112112 describe ( 'getGoalDisplayName' , ( ) => {
113113 it ( 'should return plural display name for target > 1' , ( ) => {
114114 expect ( composable . getGoalDisplayName ( 5 , ID_BASIC_NEEDS ) ) . toBe ( 'basic needs loans' ) ;
115- expect ( composable . getGoalDisplayName ( 10 , ID_CLIMATE_ACTION ) ) . toBe ( 'eco- friendly loans' ) ;
115+ expect ( composable . getGoalDisplayName ( 10 , ID_CLIMATE_ACTION ) ) . toBe ( 'eco friendly loans' ) ;
116116 expect ( composable . getGoalDisplayName ( 3 , ID_REFUGEE_EQUALITY ) ) . toBe ( 'refugees' ) ;
117- expect ( composable . getGoalDisplayName ( 2 , ID_SUPPORT_ALL ) ) . toBe ( 'loans ' ) ;
118- expect ( composable . getGoalDisplayName ( 100 , ID_US_ECONOMIC_EQUALITY ) ) . toBe ( 'U.S. entrepreneurs' ) ;
117+ expect ( composable . getGoalDisplayName ( 2 , ID_SUPPORT_ALL ) ) . toBe ( 'borrowers ' ) ;
118+ expect ( composable . getGoalDisplayName ( 100 , ID_US_ECONOMIC_EQUALITY ) ) . toBe ( 'US entrepreneurs' ) ;
119119 expect ( composable . getGoalDisplayName ( 7 , ID_WOMENS_EQUALITY ) ) . toBe ( 'women' ) ;
120120 } ) ;
121121
122122 it ( 'should return singular display name for target = 1' , ( ) => {
123123 expect ( composable . getGoalDisplayName ( 1 , ID_BASIC_NEEDS ) ) . toBe ( 'basic needs loan' ) ;
124- expect ( composable . getGoalDisplayName ( 1 , ID_CLIMATE_ACTION ) ) . toBe ( 'eco- friendly loan' ) ;
124+ expect ( composable . getGoalDisplayName ( 1 , ID_CLIMATE_ACTION ) ) . toBe ( 'eco friendly loan' ) ;
125125 expect ( composable . getGoalDisplayName ( 1 , ID_REFUGEE_EQUALITY ) ) . toBe ( 'refugee' ) ;
126- expect ( composable . getGoalDisplayName ( 1 , ID_SUPPORT_ALL ) ) . toBe ( 'loan ' ) ;
127- expect ( composable . getGoalDisplayName ( 1 , ID_US_ECONOMIC_EQUALITY ) ) . toBe ( 'U.S. entrepreneur' ) ;
126+ expect ( composable . getGoalDisplayName ( 1 , ID_SUPPORT_ALL ) ) . toBe ( 'borrower ' ) ;
127+ expect ( composable . getGoalDisplayName ( 1 , ID_US_ECONOMIC_EQUALITY ) ) . toBe ( 'US entrepreneur' ) ;
128128 expect ( composable . getGoalDisplayName ( 1 , ID_WOMENS_EQUALITY ) ) . toBe ( 'woman' ) ;
129129 } ) ;
130130
@@ -1603,7 +1603,7 @@ describe('useGoalData', () => {
16031603 const router = { currentRoute : { value : { } } } ;
16041604
16051605 const href = composable . getCtaHref ( selectedGoalNumber , categoryId , router ) ;
1606- const expectedString = 'Your goal: Support 1 woman' ;
1606+ const expectedString = 'Support 1 more woman to reach your goal ' ;
16071607 const expectedHref = `/lend/${ categoryId } ?header=${ encodeURIComponent ( expectedString ) } ` ;
16081608
16091609 expect ( href ) . toBe ( expectedHref ) ;
@@ -1615,7 +1615,7 @@ describe('useGoalData', () => {
16151615 const router = { currentRoute : { value : { } } } ;
16161616
16171617 const href = composable . getCtaHref ( selectedGoalNumber , categoryId , router ) ;
1618- const expectedString = 'Your goal: Support 5 basic needs loans' ;
1618+ const expectedString = 'Support 5 more basic needs loans to reach your goal ' ;
16191619 const expectedHref = `/lend/${ categoryId } ?header=${ encodeURIComponent ( expectedString ) } ` ;
16201620
16211621 expect ( href ) . toBe ( expectedHref ) ;
@@ -1627,19 +1627,7 @@ describe('useGoalData', () => {
16271627 const router = { currentRoute : { value : { } } } ;
16281628
16291629 const href = composable . getCtaHref ( selectedGoalNumber , categoryId , router ) ;
1630- const expectedString = 'Your goal: Support 10 loans' ;
1631- const expectedHref = `/lend/${ categoryId } ?header=${ encodeURIComponent ( expectedString ) } ` ;
1632-
1633- expect ( href ) . toBe ( expectedHref ) ;
1634- } ) ;
1635-
1636- it ( 'should encode special characters in header' , ( ) => {
1637- const selectedGoalNumber = 3 ;
1638- const categoryId = ID_US_ECONOMIC_EQUALITY ;
1639- const router = { currentRoute : { value : { } } } ;
1640-
1641- const href = composable . getCtaHref ( selectedGoalNumber , categoryId , router ) ;
1642- const expectedString = 'Your goal: Support 3 U.S. entrepreneurs' ;
1630+ const expectedString = 'Support 10 more borrowers to reach your goal' ;
16431631 const expectedHref = `/lend/${ categoryId } ?header=${ encodeURIComponent ( expectedString ) } ` ;
16441632
16451633 expect ( href ) . toBe ( expectedHref ) ;
0 commit comments