Skip to content

Commit

Permalink
doc: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Nov 14, 2015
1 parent 80f8d0e commit a4ad178
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@ Sets `child_process` gid option.
.gid(0)
```

### .end(fn)
Executes command and evaluates assertions. Callback is fired without arguments.
### .end([fn])
Executes command and evaluates assertions. `end()` will throw with no callback.
Callback is fired with `fn(err, stdout, stderr)` :
- `err`: null or the assert or process error
- `stdout`: the output string
- `stderr`: the error string
```javascript
.end(callback_function)
```
Expand Down

0 comments on commit a4ad178

Please sign in to comment.