Properly test functions by going through all possible edge cases
Creating the test suite
For functions with complex use cases, create an object with the test parameters.
This will require refactoring and creating helper functions to iterate the test suites.
Below is a run down of the possible stages:
Properly test functions by going through all possible edge cases
Creating the test suite
For functions with complex use cases, create an object with the test parameters.
This will require refactoring and creating helper functions to iterate the test suites.
Below is a run down of the possible stages: