command.description.test.js
This file
Path
tests/command.description.test.js
12 lines · 411 bytes · JavaScript
Last changed by
Switching to esm-only (#2464)John Geebefore adoptionf4bd470
History of this fileTake it
12345678910111213import * as commander from '../index.js';import { test, describe } from 'node:test';import assert from '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); });});