mirror of
https://github.com/samsonjs/Peekaboo.git
synced 2026-04-27 15:07:41 +00:00
Update invalid command test to match actual Swift CLI behavior
This commit is contained in:
parent
4e640fc297
commit
7fadd6e5f1
1 changed files with 2 additions and 2 deletions
|
|
@ -532,9 +532,9 @@ function checkSwiftCLIIntegration() {
|
||||||
|
|
||||||
log('Testing Swift CLI error handling and edge cases...', colors.cyan);
|
log('Testing Swift CLI error handling and edge cases...', colors.cyan);
|
||||||
|
|
||||||
// Test 1: Invalid command
|
// Test 1: Invalid command (since image is default, this gets interpreted as image subcommand argument)
|
||||||
const invalidCmd = exec('./peekaboo invalid-command 2>&1', { allowFailure: true });
|
const invalidCmd = exec('./peekaboo invalid-command 2>&1', { allowFailure: true });
|
||||||
if (!invalidCmd || (!invalidCmd.includes('Error:') && !invalidCmd.includes('Unexpected argument'))) {
|
if (!invalidCmd || !invalidCmd.includes('Unexpected argument')) {
|
||||||
logError('Swift CLI should show error for invalid command');
|
logError('Swift CLI should show error for invalid command');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue