MCPcopy Index your code
hub / github.com/ampproject/amphtml / rediscover

Function rediscover

test/unit/core/context/test-node-values.js:125–131  ·  view source on GitHub ↗
(...nodesOrContextNodes)

Source from the content-addressed store, hash-verified

123 }
124
125 function rediscover(...nodesOrContextNodes) {
126 const contextNodes = nodesOrContextNodes.map((arg) =>
127 arg.nodeType ? ContextNode.get(arg) : arg
128 );
129 contextNodes.forEach((cn) => cn.discover());
130 return waitForDiscover.apply(null, contextNodes);
131 }
132
133 describe('connected, non-recursive', () => {
134 let sibling1, sibling1Stub;

Callers 1

Calls 4

discoverMethod · 0.80
applyMethod · 0.80
getMethod · 0.45
forEachMethod · 0.45

Tested by

no test coverage detected