Open emidiocroci opened 10 years ago
Maybe I'm misunderstanding you, but can't you do it with .send()
From what I understood, .send() is used to tell shmock what parameters it should expect in the request but I need to know what are the received parameters (not if they are equal to something else). More precisely, I was mocking an authentication request and I needed to know what was the username sent to the library.
I used shmock to mock requests to a legacy library during some integration tests and I needed to inspect the received request in order to get the value of some parameters contained in the body, so I decided to forward it in the wait callback. I should be useful for an advanced inspection of the received request.