mirror of
https://github.com/samsonjs/Peekaboo.git
synced 2026-03-25 09:25:47 +00:00
Fix Swift CLI invalid command test to match actual error output
This commit is contained in:
parent
228ee053b2
commit
4e640fc297
1 changed files with 1 additions and 1 deletions
|
|
@ -534,7 +534,7 @@ function checkSwiftCLIIntegration() {
|
|||
|
||||
// Test 1: Invalid command
|
||||
const invalidCmd = exec('./peekaboo invalid-command 2>&1', { allowFailure: true });
|
||||
if (!invalidCmd || !invalidCmd.includes('Error') && !invalidCmd.includes('USAGE')) {
|
||||
if (!invalidCmd || (!invalidCmd.includes('Error:') && !invalidCmd.includes('Unexpected argument'))) {
|
||||
logError('Swift CLI should show error for invalid command');
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue