xebia / mock-rest-request

Mock REST requests in NodeJS
https://xebia.com/blog/mocking-a-rest-backend-for-your-angularjs-grunt-web-application/
Apache License 2.0
12 stars 6 forks source link

Improved test for non GET request on GET mock #1

Closed bluec0re closed 9 years ago

bluec0re commented 9 years ago

The test code seems to mock GET requests as GET and POST requests. I've currently no idea why, but added the missing test to ensure the correct behaviour.

lammertw commented 9 years ago

Thanks. The test was falling however. I needed to reset all mocks before running each test and split the POST from the PUT in a separate test to get it working.