(tag, className, text)
| 86 | // --------------------------------------------------------------------------- |
| 87 | |
| 88 | function el(tag, className, text) { |
| 89 | const node = document.createElement(tag); |
| 90 | if (className) node.className = className; |
| 91 | if (text !== undefined) node.textContent = text; |
| 92 | return node; |
| 93 | } |
| 94 | |
| 95 | const $ = (root, role) => root.querySelector(`[data-role="${role}"]`); |
| 96 |
no outgoing calls
no test coverage detected