MCPcopy Create free account
hub / github.com/dailydotdev/apps / layers

Function layers

packages/shared/src/components/share/CopyStateIcon.spec.tsx:6–16  ·  view source on GitHub ↗
(container: HTMLElement)

Source from the content-addressed store, hash-verified

4import { CopyStateIcon } from './CopyStateIcon';
5
6const 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
18describe('CopyStateIcon', () => {
19 it('rests on the given glyph with the confirmation hidden', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected