command.summary.test.js
This file
Path
tests/command.summary.test.js
10 lines · 334 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 } 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
line 5why, one step back5test('Command.summary(): when set summary then get summary', () => {Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40
lines 6–8why, one step back6 const program = new commander.Command();7 const summary = 'abcdef';8 program.summary(summary);Switch from Jest to Node.js built-in test runner (#2463)John Geebefore adoption3dd6086
line 9why, one step back9 assert.equal(program.summary(), summary);Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40
line 10why, one step back10});