Hacker News new | ask | show | jobs
by texel 5369 days ago
I don't like this kind of mocking because usually, I don't care what methods are called internally, I care what the outputs and side effects are. There's almost always a better approach than expectations.