Skip to content

Commit

Permalink
re #8 update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
A committed Aug 2, 2015
1 parent 9db610c commit 0682475
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,23 @@ var request = require('superagent');
var mock = require('superagent-mocker')(request);
```

### Timeout

You can provide custom, that can ve a function or a number. Just set
`timeout` property to the `mock`:

```js
var mock = require('superagent-mocker');

// set just number
mock.timeout = 100;

// Or function to get random
mock.timeout = function () {
return Math.random() * 1e4 |0;
}
```

### Get

```js
Expand Down

0 comments on commit 0682475

Please sign in to comment.