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

Function mount

packages/shared/src/components/shell/sheetDrag.spec.ts:5–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4describe('attachSheetDrag', () => {
5 const mount = () => {
6 const panel = document.createElement('div');
7 Object.defineProperty(panel, 'offsetHeight', { value: 300 });
8 document.body.appendChild(panel);
9 const detach = attachSheetDrag(panel, jest.fn());
10 return { panel, detach };
11 };
12
13 it('marks the sheet entered once its enter animation ends', () => {
14 const { panel, detach } = mount();

Callers 1

sheetDrag.spec.tsFile · 0.70

Calls 1

attachSheetDragFunction · 0.90

Tested by

no test coverage detected