( frames: readonly T[], label: string, )
| 201 | } |
| 202 | |
| 203 | export function getFrameByLabel<T extends { readonly label: string }>( |
| 204 | frames: readonly T[], |
| 205 | label: string, |
| 206 | ): T { |
| 207 | const frame = frames.find(candidate => candidate.label === label) |
| 208 | if (!frame) { |
| 209 | throw new Error(`Missing frame ${label}`) |
| 210 | } |
| 211 | return frame |
| 212 | } |
| 213 | |
| 214 | export function hasVisibleTextContent(text: string): boolean { |
| 215 | return text |
no outgoing calls
no test coverage detected