mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
test(spec): name the shadow match in the grammar both hosts parse
This commit is contained in:
1 parent
e62b08dffd
commit
0cef5bd1d3
1 file changed
+2
-2
@@ -600,11 +600,11 @@ test("ax.find resolves the shadow-hosted match the hierarchy dump reaches first"
|
|||||||
__testing__.extractors.length = 0;
|
__testing__.extractors.length = 0;
|
||||||
__testing__.runtime.extract((state) => {
|
__testing__.runtime.extract((state) => {
|
||||||
const ax = (state as { ax: { find(s: unknown): Record<string, unknown> | undefined } }).ax;
|
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) => {
|
__testing__.runtime.extract((state) => {
|
||||||
const ax = (state as { ax: { findAll(s: unknown): Record<string, unknown>[] } }).ax;
|
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();
|
const values = __testing__.evaluateExtractors();
|
||||||
assert.equal(readingOf(values, 0), "shadow");
|
assert.equal(readingOf(values, 0), "shadow");
|
||||||
|
|||||||
Reference in new issue
Block a user