You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/utils.js
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -38,24 +38,24 @@ test('utils.sentences', t => {
38
38
});
39
39
40
40
test('utils.help',t=>{
41
-
let{name, tree }=sade('foo').describe('global foo').command('bar','Hello. World.').command('fizz <buzz>');
41
+
let{bin, tree }=sade('foo').describe('global foo').command('bar','Hello. World.').command('fizz <buzz>');
42
42
43
-
letfoo=$.help(name,tree,'__default__');// global, 1 or 0 lines of desc per command
43
+
letfoo=$.help(bin,tree,'__default__');// global, 1 or 0 lines of desc per command
44
44
t.is(foo,'\n Description\n global foo\n\n Usage\n $ foo <command> [options]\n\n Available Commands\n bar Hello.\n fizz \n\n For more info, run any command with the `--help` flag\n $ foo bar --help\n $ foo fizz --help\n\n Options\n -v, --version Displays current version\n -h, --help Displays this message\n');
0 commit comments