mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 18:15:23 +00:00
test(cliproxy): add management-api-client unit tests
- Add 31 unit tests for fetchLocalSyncStatus, fetchProfiles, and performLocalSync - Cover success, error, timeout, and network failure scenarios - Remove unused --force flag from sync handler (YAGNI)
This commit is contained in:
1 parent
bbad73b554
commit
6611142dcc
2 files changed
+522
-2
No files matched your search
@@ -10,7 +10,6 @@ import { initUI, header, subheader, color, dim, ok, fail, warn, info, table } fr
|
||||
interface SyncArgs {
|
||||
dryRun: boolean;
|
||||
verbose: boolean;
|
||||
force: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -20,7 +19,6 @@ export function parseSyncArgs(args: string[]): SyncArgs {
|
||||
return {
|
||||
dryRun: args.includes('--dry-run') || args.includes('-n'),
|
||||
verbose: args.includes('--verbose') || args.includes('-v'),
|
||||
force: args.includes('--force') || args.includes('-f'),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user