Closed ChrisAlderson closed 6 years ago
The MovieHelper
and ShowHelper
classes need to be further tested. They are difficult to test since those classes are pretty complex so maybe it's best to rewrite them first before implementing more test cases.
Ok, i want do this. Do you have any tip for the refactor of this entities? and do you indicate any design pattern for unit test?
You can refactor the complex parts into seperate methods to reduce the complexity. An ESLint rule you could add only for testing purposes would be the complexity
rule.
As for the unittests:
Hi @ChrisAlderson, can you be more specific about who entity need be tested?