docs: tighten queryThenKey fixture to assert input="a"

Prevents false pass if query response leaks to handler.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yunfei He
2026-05-27 13:57:58 +08:00
parent 463161d97c
commit 3412f9acce
@@ -1194,9 +1194,11 @@ const KittyInput = defineComponent({
}
if (props.test === "queryThenKey") {
// First non-query key after the query response was silently swallowed
exit();
return;
if (input === "a") {
exit();
return;
}
throw new Error(`queryThenKey: expected input="a", got input="${input}"`);
}
throw new Error(`Unexpected input for test "${props.test}": input="${input}"`);