Skip to content

Commit 5e16096

Browse files
committed
update camelcase
1 parent 85a7b99 commit 5e16096

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/actions/PolicyTaxTest.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)