mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-16 08:25:14 +02:00
fix(cli): match command tree description separator
This commit is contained in:
parent
d4ce275a3c
commit
e8a7018c55
3 changed files with 5 additions and 5 deletions
|
|
@ -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]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue