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 fileTake it
1234567891011const commander = require('../');const { test } = require('node:test');const assert = require('node:assert/strict');
test('Command.summary(): when set summary then get summary', () => { const program = new commander.Command(); const summary = 'abcdef'; program.summary(summary); assert.equal(program.summary(), summary);});