Skip to content

Commit

Permalink
[Chore] Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
d3v2a committed Jan 3, 2019
1 parent 5871173 commit 2472a6a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/shell/lib/Shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions lib/shell/lib/plugins/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
*/

Expand Down Expand Up @@ -56,6 +56,6 @@ module.exports = function history(settings) {
return parent.apply(this, arguments);
};
})(Interface.prototype._addHistory);
return null;
return;
};

4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Install laravel-queue
npm install --save laravel-queue
```

After init the apllication
After init the application

```
./artisan init
Expand All @@ -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
Expand Down
6 changes: 2 additions & 4 deletions test/lib/shell/routes/testMiddlewares.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ module.exports = {
res.print('message from function');

res.prompt();
// throw new Error('testr');
}
]);
app.start();
Expand All @@ -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('');
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 2472a6a

Please sign in to comment.