I had a copy paste error and wasn’t showing the actual solution in the final part of the article.
Happens ;)
I think it’s much nicer to not have to write a test for this kind of thing.
To put it in another way:
Write tests to observe changing behaviour of your application.
If your code has to change due to an error, write a test covering that changing behaviour.
Do not try to cover each and every cornercase.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Happens ;)
To put it in another way:
Write tests to observe changing behaviour of your application.
If your code has to change due to an error, write a test covering that changing behaviour.
Do not try to cover each and every cornercase.