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
The walk stopped after 200 commits: lines older than 471ec40 point at it.
Switching to esm-only (#2464)John Geebefore adoptionf4bd470
lines 1–3why, one step back1import * as commander from '../index.js';2import { test, describe } from 'node:test';3import assert from 'node:assert/strict';Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40
line 4why, one step back4Add describe wrappers so test output makes sense without filenames (#2472)John Geebefore adoptionb3e6795
lines 5–11why, one step back5describe('Command description()', () => {6 test('when set description then get description', () => {7 const program = new commander.Command();8 const description = 'abcdef';9 program.description(description);10 assert.equal(program.description(), description);11 });Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40
line 12why, one step back12});