mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-04 10:16:34 +00:00
test: cover llama.cpp help parity
This commit is contained in:
@@ -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