command.summary.test.js
This file
Path
tests/command.summary.test.js
8 lines · 234 bytes · JavaScript
Last changed by
Add optional summary for short form of subcommand description. (#1726)John Geebefore adoptioncc2db5b
History of this fileTake it
123456789const commander = require('../');
test('when set summary then get summary', () => { const program = new commander.Command(); const summary = 'abcdef'; program.summary(summary); expect(program.summary()).toMatch(summary);});