From 0cef5bd1d3999bbdac1efc7b6b5f634084b22bd0 Mon Sep 17 00:00:00 2001 From: PJ Date: Sat, 15 Aug 2026 20:39:21 +0530 Subject: [PATCH] test(spec): name the shadow match in the grammar both hosts parse --- pkg/spec/test/web-runtime.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/spec/test/web-runtime.test.ts b/pkg/spec/test/web-runtime.test.ts index 5316fc9..d325871 100644 --- a/pkg/spec/test/web-runtime.test.ts +++ b/pkg/spec/test/web-runtime.test.ts @@ -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 | 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[] } }).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");