Skip to content

Commit

Permalink
docs: better clarity for API usage
Browse files Browse the repository at this point in the history
extract config to a var to create better clarity for API usage
  • Loading branch information
nirmoav authored and lusarz committed Jul 25, 2018
1 parent 0018947 commit c5dc62d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/dev/04-public-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ You can, however, call Karma programmatically from your node module. Here is the

```javascript
var Server = require('karma').Server
var server = new Server({port: 9876}, function(exitCode) {
var karmaConfig = {port: 9876}
var server = new Server(karmaConfig, function(exitCode) {
console.log('Karma has exited with ' + exitCode)
process.exit(exitCode)
})
Expand Down

0 comments on commit c5dc62d

Please sign in to comment.