mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
Set org-roam-directory to a non-existent path to ensure robust test
* In some rare case, the first expect of org-roam-file-p may return t when running in some environment (e.g. during autopkgtest in Debian). * Setting org-roam-directory to a non-existent path ensure that the first check is always nil as expected.
This commit is contained in:
committed by
Dustin Farris
parent
ed272eaf56
commit
888b5d1a67
@ -28,6 +28,7 @@
|
||||
|
||||
(describe "org-roam-file-p"
|
||||
(it "checks if given file respects criteria"
|
||||
(setq org-roam-directory "/non-existent")
|
||||
(expect (org-roam-file-p "tests/roam-files/family.org") :to-equal nil)
|
||||
|
||||
(setq org-roam-directory (expand-file-name "tests/roam-files"))
|
||||
|
Reference in New Issue
Block a user