mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-14 02:15:36 +00:00
fix: persist codex target selections
This commit is contained in:
1 parent
c21f589247
commit
04dc97aaa4
10 files changed
+26
-29
No files matched your search
@@ -71,15 +71,15 @@ describe('api-command arg parser', () => {
|
||||
|
||||
expect(parsed.target).toBeUndefined();
|
||||
expect(parsed.errors).toEqual([
|
||||
'Invalid --target value "invalid-target". Use: claude or droid',
|
||||
'Invalid --target value "invalid-target". Use: claude, droid, or codex',
|
||||
]);
|
||||
});
|
||||
|
||||
test('rejects runtime-only codex as a persisted API target value', () => {
|
||||
test('accepts codex as a persisted API target value', () => {
|
||||
const parsed = parseApiCommandArgs(['my-api', '--target', 'codex']);
|
||||
|
||||
expect(parsed.target).toBeUndefined();
|
||||
expect(parsed.errors).toEqual(['Invalid --target value "codex". Use: claude or droid']);
|
||||
expect(parsed.target).toBe('codex');
|
||||
expect(parsed.errors).toEqual([]);
|
||||
});
|
||||
|
||||
test('collects missing-value error for --target with no value', () => {
|
||||
|
||||
Reference in new issue
Block a user