Skip to content
Myr

command.description.test.js

This file

Path

tests/command.description.test.js

12 lines · 413 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('../');

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

line 2why, one step back
2const { test, describe } = require('node:test');

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

line 3why, one step back
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

lines 5–11why, one step back
5describe('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 });

update chinese readme (#1727)wenjiebefore adoptionb2842dc

line 12why, one step back
12});