Skip to content

Commit

Permalink
added test
Browse files Browse the repository at this point in the history
  • Loading branch information
FitseTLT committed Dec 23, 2024
1 parent b7f2270 commit 4e6fa2e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/unit/PolicyDistanceRatesUtilsTest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import {validateTaxClaimableValue} from '@libs/PolicyDistanceRatesUtils';

describe('PolicyDistanceRatesUtils', () => {
describe('validateTaxClaimableValue', () => {
it('should return false when taxClaimableValue is equal to rate', () => {
// Given a tax claimable value inserted for a distance rate
// When the taxClaimableValue is equal to the distance rate
const validate = validateTaxClaimableValue({taxClaimableValue: '0.67'}, {rate: 67});
// Then validateTaxClaimableValue will return an error.
expect(validate.taxClaimableValue).toBeDefined();
});
});
});

0 comments on commit 4e6fa2e

Please sign in to comment.