Describe the task
There is a considerable lack of unit tests for Compliance components. We aim to fill this gap.
Purpose
Adding unit tests will increase the confidence in capturing the business logic and ensure the consistent functioning of the Compliance components.
Acceptance Criteria
[ ] Create a new tests directory in the compliance directory
[ ] Pick 3 files and create test files for the components that currently lack coverage
[ ] Write unit tests to reach 50% coverage in the Components test files
[ ] Focus on capturing business logic in each of the component files such as compliance calculation logic, user input validation, state changes, etc.
Additional context
use the jest --coverage command to view the current coverage percentages for the files
Describe the task There is a considerable lack of unit tests for Compliance components. We aim to fill this gap.
Purpose Adding unit tests will increase the confidence in capturing the business logic and ensure the consistent functioning of the Compliance components.
Acceptance Criteria
Additional context
use the jest --coverage command to view the current coverage percentages for the files