Skip to content

Commit

Permalink
clarify accepted input of error option
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Demedes committed Dec 17, 2017
1 parent 03ba2a9 commit 8417845
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions readme.md
Expand Up @@ -80,9 +80,10 @@ Status of the test.

##### error

Type: `Error`
Type: `Error` `object`

If test has failed (`passed` is `false`), `error` is an instance of an actual error.
If test has failed (`passed` is `false`), `error` should be an instance of an actual error.
It can also be an object, which fields will be included in the output (e.g. `name`, `message`, `actual`, `expected`).

```js
supertest.test('failing', {
Expand Down

0 comments on commit 8417845

Please sign in to comment.