test(spec): name the shadow match in the grammar both hosts parse

This commit is contained in:
pj committed 2026-08-15 20:39:21 +05:30
1 parent e62b08dffd
commit 0cef5bd1d3
1 file changed
+2 -2
+2 -2
View File
@@ -600,11 +600,11 @@ test("ax.find resolves the shadow-hosted match the hierarchy dump reaches first"
__testing__.extractors.length = 0;
__testing__.runtime.extract((state) => {
const ax = (state as { ax: { find(s: unknown): Record<string, unknown> | undefined } }).ax;
return ax.find({ id: "x" })?.text;
return ax.find("id:x")?.text;
});
__testing__.runtime.extract((state) => {
const ax = (state as { ax: { findAll(s: unknown): Record<string, unknown>[] } }).ax;
return ax.findAll({ id: "x" }).map((element) => element.text);
return ax.findAll("id:x").map((element) => element.text);
});
const values = __testing__.evaluateExtractors();
assert.equal(readingOf(values, 0), "shadow");