I'm looking to mock responses from an external API service that returns JSON during live events.
The first response would contain (fake) events that have happened up to time X
, the second response would contain (fake) events up to time X + N
where N
is the interval between requests.
I'm not sure how to do this. Up until this point I have only mocked single responses, which was easy by just intercepting the response. However now I need to test against multiple requests.