From 0745a008f934f646bf38eadbbe9c18cd48f45c98 Mon Sep 17 00:00:00 2001 From: Yaniv Efraim Date: Sun, 10 Jul 2016 15:34:05 +0300 Subject: [PATCH] fix(docs): fix stopper.stop wrong variable name. closes #2244 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) { ``` --- docs/dev/04-public-api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/dev/04-public-api.md b/docs/dev/04-public-api.md index 6c4e580fe..17e6b8115 100644 --- a/docs/dev/04-public-api.md +++ b/docs/dev/04-public-api.md @@ -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') } @@ -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. \ No newline at end of file +- If there is an error, the error code will be provided as the second parameter to the error callback.