MCPcopy Create free account
hub / github.com/ampproject/amphtml / eq

Function eq

test/unit/core/context/test-node-discover.js:1093–1093  ·  view source on GitHub ↗
(cn, arg)

Source from the content-addressed store, hash-verified

1091 expect(findParent(sibling1, any, null, EXCLUDE_SELF)).to.equal(parent);
1092
1093 const eq = (cn, arg) => cn === arg;
1094 expect(findParent(sibling1, eq, sibling1)).to.equal(sibling1);
1095 expect(findParent(sibling1, eq, sibling1, EXCLUDE_SELF)).to.be.null;
1096 expect(findParent(sibling1, eq, parent)).to.equal(parent);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected