@@ -852,20 +852,20 @@ describe('actions/PolicyTax', () => {
852852 } ) ;
853853 } ) ;
854854 describe ( 'SetPolicyTaxCode' , ( ) => {
855- const oldtaxCode = 'id_TAX_RATE_1' ;
855+ const oldTaxCode = 'id_TAX_RATE_1' ;
856856 const newTaxCode = 'id_TAX_RATE_2' ;
857- const oldTaxRateName = fakePolicy ?. taxRates ?. taxes [ oldtaxCode ] ?. name ;
857+ const oldTaxRateName = fakePolicy ?. taxRates ?. taxes [ oldTaxCode ] ?. name ;
858858
859859 it ( 'Set policy`s tax code' , ( ) => {
860860 mockFetch ?. pause ?.( ) ;
861861 const distanceRateCustomUnit = fakePolicy ?. customUnits ?. [ CONST . CUSTOM_UNITS . NAME_DISTANCE ] ;
862862
863863 setPolicyTaxCode (
864864 fakePolicy . id ,
865- oldtaxCode ,
865+ oldTaxCode ,
866866 newTaxCode ,
867867 // @ts -expect-error - we can send undefined tax rate here for testing
868- fakePolicy ?. taxRates ?. taxes [ oldtaxCode ] ,
868+ fakePolicy ?. taxRates ?. taxes [ oldTaxCode ] ,
869869 fakePolicy ?. taxRates ?. foreignTaxDefault ,
870870 fakePolicy ?. taxRates ?. defaultExternalID ,
871871 distanceRateCustomUnit ,
@@ -884,7 +884,7 @@ describe('actions/PolicyTax', () => {
884884
885885 // We expected to have a new tax rate with the new tax code
886886 expect ( updatedTaxRate ) . toBeDefined ( ) ;
887- expect ( updatedTaxRate ?. previousTaxCode ) . toBe ( oldtaxCode ) ;
887+ expect ( updatedTaxRate ?. previousTaxCode ) . toBe ( oldTaxCode ) ;
888888 expect ( updatedTaxRate ?. name ) . toBe ( oldTaxRateName ) ;
889889 resolve ( ) ;
890890 } ,
0 commit comments