command.description.test.js
This file
Path
tests/command.description.test.js
8 lines · 262 bytes · JavaScript
Last changed by
Add tests for some getters (#1369)John Geebefore adoptionf15900d
History of this fileTake it
Add tests for some getters (#1369)John Geebefore adoptionf15900d
lines 1–8why, one step back1const commander = require('../');23test('when set description then get description', () => {4 const program = new commander.Command();5 const description = 'abcdef';6 program.description(description);7 expect(program.description()).toMatch(description);8});