Hacker News new | ask | show | jobs
by TheReveller 1612 days ago
Also error conditions - telling a fake to give you a specific error before you run the test is no different from telling a mock to do it.
1 comments

It is different. You tell the mock to give you an specific error with specific information, while you tell the fake to give you the error for an specific condition.

It is subtle and may not be worth the time, but again, it may be.