MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / rect

Function rect

graph-ui/src/ui/tooltip/Hint.test.tsx:148–149  ·  view source on GitHub ↗
(x: number, y: number, width: number, height: number)

Source from the content-addressed store, hash-verified

146 */
147 it('weicht keinem Feld aus, das in einem zugeklappten details gar nicht gezeichnet ist', async () => {
148 const rect = (x: number, y: number, width: number, height: number) => () =>
149 ({ x, y, width, height, left: x, top: y, right: x + width, bottom: y + height, toJSON: () => ({}) }) as DOMRect;
150 const size = vi.spyOn(HTMLElement.prototype, 'offsetWidth', 'get').mockImplementation(function (this: HTMLElement) {
151 return this.dataset.testid === 'atlas-hint' ? 200 : 0;
152 });

Callers 1

Hint.test.tsxFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected