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:
@@ -1194,9 +1194,11 @@ const KittyInput = defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (props.test === "queryThenKey") {
|
if (props.test === "queryThenKey") {
|
||||||
// First non-query key after the query response was silently swallowed
|
if (input === "a") {
|
||||||
exit();
|
exit();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
throw new Error(`queryThenKey: expected input="a", got input="${input}"`);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Error(`Unexpected input for test "${props.test}": input="${input}"`);
|
throw new Error(`Unexpected input for test "${props.test}": input="${input}"`);
|
||||||
|
|||||||
Reference in New Issue
Block a user