command.description.test.js
This file
Path
tests/command.description.test.js
8 lines · 262 bytes · JavaScript
Last changed by
Merge branch 'develop' into release/7.xJohn Geebefore adoptiond90ef12
History of this fileTake it
123456789const commander = require('../');
test('when set description then get description', () => { const program = new commander.Command(); const description = 'abcdef'; program.description(description); expect(program.description()).toMatch(description);});