aboutsummaryrefslogtreecommitdiff
path: root/tests/test-dirvish-config-get-project-root.el
Commit message (Collapse)AuthorAgeFilesLines
* test(dirvish): cover cj/get-project-root with stubbed APIsCraig Jennings2026-05-101-0/+71
`cj/get-project-root' was already in the right shape (pure dispatch over `projectile-project-root' and `project-current'), but had no tests. Add four covering the four meaningful states: projectile finds a root, projectile returns nil and project.el finds one, projectile errors and the wrapper falls through to project.el, and neither finds anything. The tests stub all three external symbols (`projectile-project-root', `project-current', `project-root') so they exercise the function without a project on disk.