DEV Community


Discussion on: A Series of My Unfortunate Mistakes (When Writing Tests)

briwa profile image
briwa Author

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.