xetorthio / shmock

Simple HTTP Mocking Library
MIT License
101 stars 20 forks source link

Added multiple repetition #4

Closed emidiocroci closed 10 years ago

emidiocroci commented 10 years ago

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).

emidiocroci commented 10 years ago

I just noticed that the same feature was implemented in the pull-request #3. Sorry.