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
1234567891011import * as commander from '../index.js';import { test } from 'node:test';import assert from '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);});