(
overrides: Partial<ConstraintContext> = {}
)
| 40 | |
| 41 | // Helper to create a constraint context |
| 42 | function createContext( |
| 43 | overrides: Partial<ConstraintContext> = {} |
| 44 | ): ConstraintContext { |
| 45 | return { |
| 46 | cols: 12, |
| 47 | maxRows: Infinity, |
| 48 | containerWidth: 1200, |
| 49 | containerHeight: 800, |
| 50 | rowHeight: 30, |
| 51 | margin: [10, 10] as [number, number], |
| 52 | layout: [], |
| 53 | ...overrides |
| 54 | }; |
| 55 | } |
| 56 | |
| 57 | describe("Constraints", () => { |
| 58 | describe("gridBounds", () => { |
no outgoing calls
no test coverage detected
searching dependent graphs…