xetorthio/shmock — pull request #4 by emidiocroci (2014-04-03 15:16:46+00:00)
Title: Added multiple repetition

By using the library with "mocha --watch" I couldn't get it to work more than one time. More precisely, on the first test run I get the mock correctly called but, after a change to the test file and the reload by mocha, the mocked route always gave me a 404. With this modification a user can avoid that and he could call the mock multiple time (if needed).