(container: HTMLElement)
| 4 | import { CopyStateIcon } from './CopyStateIcon'; |
| 5 | |
| 6 | const layers = (container: HTMLElement): string[] => { |
| 7 | const grid = container.querySelector('span.inline-grid'); |
| 8 | |
| 9 | if (!grid) { |
| 10 | throw new Error('CopyStateIcon did not render its grid'); |
| 11 | } |
| 12 | |
| 13 | return Array.from(grid.children).map( |
| 14 | (child) => child.getAttribute('class') ?? '', |
| 15 | ); |
| 16 | }; |
| 17 | |
| 18 | describe('CopyStateIcon', () => { |
| 19 | it('rests on the given glyph with the confirmation hidden', () => { |
no outgoing calls
no test coverage detected