({
layout,
mainPage,
onLayoutChangeCount,
onLayoutChangedCount
}: {
layout: Layout;
mainPage: Page;
onLayoutChangeCount: number;
onLayoutChangedCount: number;
})
| 2 | import type { Layout } from "react-resizable-panels"; |
| 3 | |
| 4 | export async function expectLayout({ |
| 5 | layout, |
| 6 | mainPage, |
| 7 | onLayoutChangeCount, |
| 8 | onLayoutChangedCount |
| 9 | }: { |
| 10 | layout: Layout; |
| 11 | mainPage: Page; |
| 12 | onLayoutChangeCount: number; |
| 13 | onLayoutChangedCount: number; |
| 14 | }) { |
| 15 | await expect(mainPage.getByText('"layout"')).toHaveText( |
| 16 | JSON.stringify( |
| 17 | { |
| 18 | layout, |
| 19 | onLayoutChangeCount, |
| 20 | onLayoutChangedCount |
| 21 | }, |
| 22 | null, |
| 23 | 2 |
| 24 | ) |
| 25 | ); |
| 26 | } |
no outgoing calls
no test coverage detected