command.description.test.js
This file
Path
tests/command.description.test.js
12 lines · 413 bytes · JavaScript
Last changed by
Add describe wrappers so test output makes sense without filenames (#2472)John Geebefore adoptionb3e6795
History of this fileTake it
12345678910111213const commander = require('../');const { test, describe } = require('node:test');const assert = require('node:assert/strict');
describe('Command description()', () => { test('when set description then get description', () => { const program = new commander.Command(); const description = 'abcdef'; program.description(description); assert.equal(program.description(), description); });});