MCPcopy
hub / github.com/reactjs/react-modal / log

Function log

specs/helper.js:18–36  ·  view source on GitHub ↗
(label, spaces)

Source from the content-addressed store, hash-verified

16 * This log is used to see if there are leaks in between tests.
17 */
18export function log(label, spaces) {
19 if (!debug) return;
20
21 console.log(`${label} -----------------`);
22 console.log(document.body.children.length);
23 const logChildren = c => console.log(c.nodeName, c.className, c.id);
24 document.body.children.forEach(logChildren);
25
26 ariaAppLog();
27 bodyTrapLog();
28 classListLog();
29 focusManagerLog();
30 portalInstancesLog();
31
32 console.log(`end ${label} -----------------` + (!spaces ? '' : `
33
34
35`));
36}
37
38let elementPool = [];
39

Callers 1

Modal.spec.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected