| 1 | type Equal = (actual: unknown, expected: unknown, label: string) => void; |
| 2 | |
| 3 | export async function runProjectTreeSortRuntimeTests(eq: Equal, projectTreeSource: string) { |
| 4 | // Request counts, cursor invalidation and stale completions are exercised |
| 5 | // against the mounted component in project-tree-loading.test.tsx. |
| 6 | eq( |
| 7 | projectTreeSource.includes("sortMode,") |
| 8 | && projectTreeSource.includes("workbenchSortModeRef.current"), |
| 9 | true, |
| 10 | "topic page requests carry the selected conversation sort mode", |
| 11 | ); |
| 12 | } |
| 13 |