Skip to content

Commit

Permalink
Document conditionalRequestHeaders and conditionalRequestBody
Browse files Browse the repository at this point in the history
  • Loading branch information
ldabiralai committed Sep 11, 2017
1 parent ca5fb15 commit 9b35b27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ simulado --file ./defaultMocks.json

```timeout``` defaults to ```0``` so there will be no delay, accepts seconds. If it's specified, simulado will wait and then send a response.

```conditionalRequestHeaders``` takes an object that reflects the headers sent in the request the mock should respond to

```conditionalRequestBody``` takes an object that reflects the body sent in the request the mock should respond to

### Mock
The `mock` will return a promise which will be fulfilled once the Simulado has finished mocking the endpoint.
You may chain requests using `then` or `await` the call if you're inside an `async` function (See https://babeljs.io/docs/plugins/transform-async-to-generator/).
Expand Down

0 comments on commit 9b35b27

Please sign in to comment.