| 25 | }); |
| 26 | |
| 27 | class FakeElement { |
| 28 | id = ""; |
| 29 | textContent = ""; |
| 30 | readonly style = { cssText: "" }; |
| 31 | readonly children: FakeElement[] = []; |
| 32 | |
| 33 | append(...nodes: FakeElement[]): void { |
| 34 | this.children.push(...nodes); |
| 35 | } |
| 36 | |
| 37 | byId(id: string): FakeElement | null { |
| 38 | if (this.id === id) return this; |
| 39 | for (const child of this.children) { |
| 40 | const found = child.byId(id); |
| 41 | if (found) return found; |
| 42 | } |
| 43 | return null; |
| 44 | } |
| 45 | |
| 46 | get text(): string { |
| 47 | return [this.textContent, ...this.children.map((child) => child.text)].join(" ").trim(); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | interface FetchCall { |
| 52 | readonly input: unknown; |
nothing calls this directly
no outgoing calls
no test coverage detected