Skip to content
Myr

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 file

Take 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 back
1import * 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 back
4

Add describe wrappers so test output makes sense without filenames (#2472)John Geebefore adoptionb3e6795

line 5why, one step back
5test('Command.summary(): when set summary then get summary', () => {

Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40

lines 6–8why, one step back
6 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 back
9 assert.equal(program.summary(), summary);

Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40

line 10why, one step back
10});