Jasmine & TypeScript–Calling and spying on private members
![](https://www.darchuk.net/wp-content/uploads/2018/09/frog-1445496_640.jpg)
There’s some debate as to whether or not you should test private members in a class. Generally, I fall in to the “if it makes sense to test it, test it” camp. If there’s a private method that is only accessible by a hard-to-mock series of callbacks or events, I would much rather write a … [Read more…]