fix(cli): match command tree description separator

This commit is contained in:
Andrey Avtomonov 2026-05-13 00:27:39 +02:00
parent d4ce275a3c
commit e8a7018c55
3 changed files with 5 additions and 5 deletions

View file

@ -6,7 +6,7 @@ describe('renderKtxCommandTree', () => {
const output = renderKtxCommandTree();
const lines = output.split('\n');
expect(lines[0]).toMatch(/^ktx( |$|\s-)/);
expect(lines[0]).toMatch(/^ktx( |$|\s)/);
const topLevel = lines.filter((line) => /^ {2}\S/.test(line)).map((line) => line.trim().split(' ')[0]);