re: A Series of My Unfortunate Mistakes (When Writing Tests) VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I would argue that testing constructor that only assigns private initial value is unnecessary, seeing how you're testing methods that work with tha...
 

You have a point. I've mentioned in the article, maybe if the constructor function has some logic, it can be tested and asserted as well. But true that, in the example I've given, testing the constructor itself might not mean that much, just putting it there.

code of conduct - report abuse