Skip to content
Myr

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 file

Take it

Merge branch 'develop' into release/7.xJohn Geebefore adoptiond90ef12

lines 1–8why, one step back
1const 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});