mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-11 03:13:12 +00:00
test: cover llama.cpp help parity
This commit is contained in:
1 parent
0b9a8526a7
commit
9bcb195e7c
1 file changed
+13
@@ -27,4 +27,17 @@ describe('help command parity', () => {
|
|||||||
expect(rendered.includes('ccs cliproxy quota --provider <name>')).toBe(true);
|
expect(rendered.includes('ccs cliproxy quota --provider <name>')).toBe(true);
|
||||||
expect(rendered.includes('ccs llamacpp')).toBe(true);
|
expect(rendered.includes('ccs llamacpp')).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('root help documents llama.cpp as a local API profile', async () => {
|
||||||
|
const lines: string[] = [];
|
||||||
|
console.log = (...args: unknown[]) => {
|
||||||
|
lines.push(args.map((arg) => String(arg)).join(' '));
|
||||||
|
};
|
||||||
|
|
||||||
|
await handleHelpCommand();
|
||||||
|
|
||||||
|
const rendered = stripAnsi(lines.join('\n'));
|
||||||
|
expect(rendered.includes('ccs llamacpp')).toBe(true);
|
||||||
|
expect(rendered.includes('http://127.0.0.1:8080')).toBe(true);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user