Skip to content
Myr

command.summary.test.js

This file

Path

tests/command.summary.test.js

10 lines · 336 bytes · JavaScript

Last changed by

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

History of this file

Take it

The walk stopped after 200 commits: lines older than b2842dc point at it.

update chinese readme (#1727)wenjiebefore adoptionb2842dc

line 1why, one step back
1const commander = require('../');

Switch from Jest to Node.js built-in test runner (#2463)John Geebefore adoption3dd6086

lines 2–3why, one step back
2const { test } = require('node:test');
3const assert = require('node:assert/strict');

update chinese readme (#1727)wenjiebefore adoptionb2842dc

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', () => {

update chinese readme (#1727)wenjiebefore adoptionb2842dc

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);

update chinese readme (#1727)wenjiebefore adoptionb2842dc

line 10why, one step back
10});