A / superagent-mocker

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

Handle more than 1 request #32

Closed kornelski closed 8 years ago

kornelski commented 8 years ago

Global state variable is overwritten when multiple requests are created, and causes end() to see last-used route, rather than the correct one.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+2.4%) to 100.0% when pulling 5bf8b24b7b60b22e1d16c4e4b8ec62903c3a9888 on pornel:master into 4c49a5e5aaae2db34de58efde99891b1195d7316 on A:master.

A commented 8 years ago

Wow! Great work! How I didn't find this nice solution? Thank you! :D