Lessen the pain of mocking/stubbing by writing smaller JavaScript functions for easier unit testing

added by JavaScript Kicks
8/1/2019 7:51:55 AM

348 Views

Let's talk about writing unit tests for JavaScript / Node applications. Yeah, you know you "should be writing tests". And you actually have been! Writing tests for functions that return some value: you know how to do that. You feel comfortable writing tests for expected output values, like true or some string or toBeDefined.


0 comments