Skip to content

Commit

Permalink
fix(docs): fix stopper.stop wrong variable name. closes #2244
Browse files Browse the repository at this point in the history
Was:

```js
var stopper = require('karma').stopper
runner.stop({port: 9876}, function(exitCode) {
```

Changed to :

```js
var stopper = require('karma').stopper
stopper.stop({port: 9876}, function(exitCode) {
```
  • Loading branch information
yanivefraim authored Jul 10, 2016
1 parent e068fd2 commit 0745a00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/dev/04-public-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ This function will signal a running server to stop. The equivalent of `karma st

```javascript
var stopper = require('karma').stopper
runner.stop({port: 9876}, function(exitCode) {
stopper.stop({port: 9876}, function(exitCode) {
if (exitCode === 0) {
console.log('Server stop as initiated')
}
Expand All @@ -136,4 +136,4 @@ runner.stop({port: 9876}, function(exitCode) {

## Callback function notes

- If there is an error, the error code will be provided as the second parameter to the error callback.
- If there is an error, the error code will be provided as the second parameter to the error callback.

0 comments on commit 0745a00

Please sign in to comment.