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
Add optional summary for short form of subcommand description. (#1726)John Geebefore adoptioncc2db5b
lines 1–8why, one step back1const commander = require('../');23test('when set summary then get summary', () => {4 const program = new commander.Command();5 const summary = 'abcdef';6 program.summary(summary);7 expect(program.summary()).toMatch(summary);8});