diff --git a/lib/shell/lib/Shell.js b/lib/shell/lib/Shell.js index 2e347d8..efec0eb 100644 --- a/lib/shell/lib/Shell.js +++ b/lib/shell/lib/Shell.js @@ -15,7 +15,7 @@ Interface = require('readline').Interface; var console; Interface.prototype.setPrompt = (function setPrompt(parent) { - return function returnSetPromt() { + return function returnSetPrompt() { var args = Array.prototype.slice.call(arguments); if (!args[1]) { args[1] = Styles.unstyle(args[0]).length; diff --git a/lib/shell/lib/plugins/history.js b/lib/shell/lib/plugins/history.js index c495901..be76737 100644 --- a/lib/shell/lib/plugins/history.js +++ b/lib/shell/lib/plugins/history.js @@ -14,7 +14,7 @@ History plugin Persistent command history over multiple sessions. Options passed during creation are: - `shell` , (required) A reference to your shell application. -- `name` , Identify your project history file, default to the hash of the exectuted file +- `name` , Identify your project history file, default to the hash of the executed file - `dir` , Location of the history files, defaults to `"#{process.env['HOME']}/.node_shell"` */ @@ -56,6 +56,6 @@ module.exports = function history(settings) { return parent.apply(this, arguments); }; })(Interface.prototype._addHistory); - return null; + return; }; diff --git a/readme.md b/readme.md index d2e05fe..b189eca 100644 --- a/readme.md +++ b/readme.md @@ -23,7 +23,7 @@ Install laravel-queue npm install --save laravel-queue ``` -After init the apllication +After init the application ``` ./artisan init @@ -32,7 +32,7 @@ After init the apllication It ask for laravel project path then ask for command path (relative to laravel project path) then when asked add this to Console/kernel.php -> if your commands folder is not standart(e.g app/Console/Commands), +> if your commands folder is not standard(e.g app/Console/Commands), dont forget to change namespace of the class ```php diff --git a/test/lib/shell/routes/testMiddlewares.js b/test/lib/shell/routes/testMiddlewares.js index 745ae4a..8360d16 100644 --- a/test/lib/shell/routes/testMiddlewares.js +++ b/test/lib/shell/routes/testMiddlewares.js @@ -53,7 +53,6 @@ module.exports = { res.print('message from function'); res.prompt(); - // throw new Error('testr'); } ]); app.start(); @@ -80,14 +79,13 @@ module.exports = { app.cmd('test:middleware', [ shell.routes.confirm('are you sure'), function afterMiddleware(req, res) { - // throw new Error('testr'); res.print('message from function'); res.prompt(); } ]); app.start(); }, - 'test shellonly Middelware No': function confirmMiddelwareNo(test) { + 'test shell only Middelware No': function confirmMiddelwareNo(test) { var stdout = []; process.argv = ['node', appdir + '/artisan', 'test:middleware']; bddStdin(''); @@ -115,7 +113,7 @@ module.exports = { ]); app.start(); }, - 'test shellonly Middelware Yes': function confirmMiddelwareYes(test) { + 'test shell only Middelware Yes': function confirmMiddelwareYes(test) { var stdout = []; process.argv = ['node', appdir + '/artisan']; bddStdin('', 'test:middleware\n', 'quit\n');