Refactoring step by step: extract validation logic from a method
Context
Testy is one of my open-source projects: it is a minimal Javascript testing framework. Testy, like many other testing tools, has a way to execute some code before each test. It is called before() and it receives a function as a block of code....
ngarbezza.hashnode.dev5 min read