A / superagent-mocker

Pretty simple in-browser mocks for CRUD and REST API
132 stars 32 forks source link

Add a method to clear all registered handlers. #10

Closed kilahm closed 9 years ago

kilahm commented 9 years ago

This is useful as a clean up step at the end of individual unit tests.

I am looking at using your library to mock some server requests, but I would like to ensure that each test has a well defined set of route handlers.

A commented 9 years ago

@kilahm awesome! Can you add few words about clearRoutes to readme?

A commented 9 years ago

ping @kilahm

kilahm commented 9 years ago

Do you have comments for the documentation I added?

A commented 9 years ago

Nope! That's cool :D

A commented 9 years ago

@kilahm published with 0.2.0